[OpenLayers-Users] BBOX strategy with scale

Zac Spitzer zac.spitzer at gmail.com
Wed Jan 7 20:12:07 EST 2009


Is there a way to pass the current scale within this request?

poi_layer = new OpenLayers.Layer.Vector("POI", {
	strategies: [new OpenLayers.Strategy.BBOX()],
		protocol: new OpenLayers.Protocol.HTTP({
		url: "/explore/poi_json.cfm",
		params: { scale: map.getZoom() },
		format: new OpenLayers.Format.GeoJSON()
	}),
	styleMap: new OpenLayers.StyleMap(style)
});

at the moment, the scale is only calculated once
and is always passed at the initial scale

z

-- 
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168



More information about the Users mailing list