[OpenLayers-Users] change layer style on zooming

Gery gamejihou at hotmail.com
Sat Nov 17 16:11:47 PST 2012


Phil Scadden wrote
> That is done via google api (Google elevation service). 
> OpenLayers.Handler.Hover created on the map, and then a callback added 
> to "pause" which calls the elevation service. Use var lonLat = 
> this.map.getLonLatFromPixel(e.xy); to get an xy location and if 
> necessary, transform it to lat/long.
> 
> I am however also using WMSgetFeatureInfo to retrieve height info from 
> grids (eg subsurface geology) which would be another way to implement it.

cool, I'll check that and see how it goes, thanks.



--
View this message in context: http://osgeo-org.1560.n6.nabble.com/change-layer-style-on-zooming-tp5014035p5017140.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list