How do I 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 the 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)
});
});