![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxpPKi9CdluFRKGYTR7KiM0ba52lq6TVQnTeEn0Mfm56Um8o8VCdfnS17NNGA-cXT-eeVNXjkON69jA0eN25pV06fYzK7eu-vavPnKbigExyetsQNDO12jLNmClsFFIw-FJVZS5xYudSE/s400/propsymbols_world.png)
Proportional symbols can be geometric or pictographic. I’m using circles on the map above, which have been the most frequently used geometric symbol. Scalable pictographic symbols are harder to create in a web interface. I will try different methods at a later stage.
The size of the circle areas are mathematically scaled in direct proportion of the population data. This is the JavaScript formula:
Math.sqrt(value / maxValue) * maxSize
The maximum symbol size is chosen to minimise the symbol overlap. People tend to underestimate the size of larger symbols, and an alternative to mathematical scaling is perceptual scaling. The underestimation is here taken into account when constructing the formula.
The new 2.6 release of OpenLayers has some powerful styling capabilities. When the user zooms the map, the circles are automatically scaled to keep their relative size. This map shows the effect:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ai_bIti3CGOKvVyXTDvqQ-lJbMbWZZy-muw4hJsbK2KYMgHsLj_wNm-hmaHhzvvHF8bb1-f95C7P0EyPDAkgArNUZejnxeytEkNXVFqHcxnJIinHGmhUhmxVKuCFGA0L2Fk6ZcTys9A/s400/propsymbols_europe.png)
Thanks to the OpenLayers developers and contributors for making a great product!
Reference:
Thematic Cartography and Geographic Visualization, Second Edition 2005, Terry A. Slocum et al., Pearson Education, Inc
1 comment:
Thanks so much for posting this! I've been looking for more info about proportional markers using OpenLayers for a while and was so happy to find your post.
I haven't tried out the code yet but I'm looking forward to it.
Post a Comment