Jump to content

Google Map Clustering


wemustdesign

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/242207-google-map-clustering/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.