PDA

View Full Version : Map Marker



satishs
16 Aug 2012, 2:34 AM
this looks straight forward and simple, can't figure out why I am not getting a marker on the map though. Any help would be great!.

onMyMapMaprender: function(map, gmap, options) {


var point = new google.maps.LatLng(-79.872322,36.076297);


marker = new google.maps.Marker({
position: point
});


marker.setMap(this.getMap());
}

Thanks.

satishs
16 Aug 2012, 2:43 AM
can't believe I waster few hours on this. I had switched lat and long coords. it is working fine, thanks.

jerome76
17 Aug 2012, 7:38 AM
Good find! The simple mistakes will hurt ya the most ;)