[OpenLayers-Users] Cluster Strategy and Google Layer
Salvaro
asufsc at gmail.com
Fri Oct 31 08:57:45 EDT 2008
I'm using a Vector Layer with Cluster Strategy (and Fixed) overlaying a WMS
(EPSG:4326) and a Google Layer (EPSG:900913).
In the WMS layer the strategy works perfectly. But in Google Layer, the
layer apparently ignores the Strategy.
Testing I saw a "strange" thing, when I use the points in EPSG:4326
coordinates in the Google Layer and all points are in the centre of the map,
looking the opacity is possible to see the points being "clustered". But
when I try to reproject them or just set different coordinates of the google
projection, the layer ignores the cluster.
The points with correct projection:
http://img225.imageshack.us/my.php?image=correctprojectionyx8.jpg
And with the incorrect projection:
http://img404.imageshack.us/my.php?image=wrongprojectiontk6.jpg
http://img505.imageshack.us/my.php?image=wrongprojection2ty8.jpg
I'm using in the Map these attributes: numZoomLevels=19,
displayProjection=EPSG:4326 and the controls.
In the layer: type=GMAPS, projection=EPSG:900913, maxExtent=-20037508.34,
-20037508.34, 20037508.34, 20037508.34, units=m, maxResolution=156543.0339F
and sphericalMercator=true.
The points are being added using addFeatures.
Anyone have an idea about what it can be and how can I do the cluster works
with the Google Layer?
Thanks!
--
View this message in context: http://n2.nabble.com/Cluster-Strategy-and-Google-Layer-tp1402961p1402961.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list