[OpenLayers-Users] Proportional Symbol Mapping
mpriour at kestrelcomputer.com
Fri Apr 4 09:46:19 EDT 2008
The correct way to handle this is to attach an event handler to the endzoom
This event should manage the size of the symbols so that they are
Choose the zoom level at which the symbol renders at the right proportion,
this will be your refernece zoom level. Then size the symbol propotionally
the ratio of resolution @ current zoom level / resolution @ reference zoom
level. Depending on the event firing order, you may also need to call
redraw() on your vector layer.
Bjorn Sandvik wrote:
> I'm currently testing the capabilities of doing thematic mapping with
> This is a proportional symbol map based on GeoJSON encoded data:
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
> Users mailing list
> Users at openlayers.org
View this message in context: http://www.nabble.com/Proportional-Symbol-Mapping-tp16484334p16491535.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users