I am working to cluster a large number of markers that I am working with.
The markers are created onMapReady through the function below where
pointsArray is an array of all the names for the markers.
function createmarkers(event:Event):void
{
for (var i:Number = 0; i < pntxml.row.length(); i++) {
pointsArray[i] = new Marker(new
LatLng(pntxml.row[i].Ycoord,pntxml.row[i].Xcoord));
markerA.push(pointsArray[i]);
}
In the above function I push the markers into an array called markerA
Also onMapReady I try to create the markerClusterer that will handle my
marker.
//on map ready params
function onMapReady(event:Event):void
{
map.setCenter(new LatLng(48.445,-113.96), 9, MapType.PHYSICAL_MAP_TYPE);
var markerClusterer = new MarkerClusterer(map,pointsArray);
}
I get the error below from flash.
Implicit coercion of a value of type com.google.maps:Map to an unrelated
type com.google.maps.interfaces:IPane.
Any suggestions would be greatly appreciated.
thanks in advance.
josh
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api-for-flash?hl=en.