wemustdesign Posted July 17, 2011 Share Posted July 17, 2011 I am using fluster to cluster my Google Maps pointers I am getting an error in the code highlited below: fluster.addMarker(marker); var point = new GLatLng(54.787918,-1.491244); var marker = createMarker(point,'hello'); Full code: function initialize() { // Create a new map with some default settings var myLatlng = new google.maps.LatLng(54.329338, -3.186035); var myOptions = { zoom: 6, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); fluster.addMarker(marker); var point = new GLatLng(54.787918,-1.491244); var marker = createMarker(point,'hello'); Any idea what the error is, not too good with javascript Quote Link to comment https://forums.phpfreaks.com/topic/242207-google-map-clustering/ Share on other sites More sharing options...
gristoi Posted July 18, 2011 Share Posted July 18, 2011 where is your createMarker function defined? looking at the google map api you make your own createMarker function. I could be wrong, but it looks like you have to build your own function Quote Link to comment https://forums.phpfreaks.com/topic/242207-google-map-clustering/#findComment-1244115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.