[OpenLayers-Users] Re: clustering strategy problem in 900913
projection
AlexR
alexrushforth at hotmail.com
Wed May 4 04:54:04 EDT 2011
I've been using this when setting up the map options, which includes units in
m
var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new
OpenLayers.Projection("EPSG:4326"),
units: "m",
controls: [new OpenLayers.Control.Navigation(), new
OpenLayers.Control.PanZoomBar()],
numZoomLevels: 18,
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
20037508, 20037508.34)
};
map = new OpenLayers.Map('map', options);
Is it possible to add units to a vector layer somewhere as i don't think i;e
done this?
The clustering is working.. however it always produces just a single point
containing all items, rather than spaced icons which change as you zoom in
and out. Also not sure exactly on the settings for cluster strategy. I've
tried changing the strategy.distance numbers but this doesnt make any
difference even with very large numbers
var strategy = new OpenLayers.Strategy.Cluster();
//strategy.distance = 20; e
//strategy.threshold = 1;
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/clustering-strategy-problem-in-900913-projection-tp6280745p6330101.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list