-3
How to position those "markers" on my map, passing longitude and latitude?
This is my HTML map script:
<div class="map-canvas" data-opt=' + ' {"txtLatitude":' +
this.Latitude + ',"txtLongitude":' + this.Longitude + '}' + '
style="display: block;width: 750px;height: 300px;"></div>
And Javascript:
var map;
$('[href*="#mapa-"]').click(function () {
var $map = $('.map-canvas', $(this).attr('href'));
map = new google.maps.Map($map.get(0), {
zoom: 10,
center: new google.maps.LatLng($map.data('opt').txtLatitude, $map.data('opt').txtLongitude)
});
});