drupal 7 - Different Cluster to Different Layers in the same Map -


i have map showing 2 different kind of projects, national projects , regional projects. each type of project in different layer, made views, shown in same map. apply different cluster each layer, e.g. national projects cluster in green , distance of 5px, regional projects cluster in blue , distance of 20px.

i 2 layers not mix between them, meaning regional layers should not cluster national one.

i using drupal 7, openlayers 2.0beta-7

is possible?

thank you!!

solution:

finally decided go easy way , added custom behavior called custom_cluster can apply different 1 each layer.

if have understood question, think can this: http://openlayers.org/dev/examples/strategy-cluster-extended.html

generally, cluster strategies defined @ level of vector layer, having 2 separate ones within 1 map view achieved adding 2 different vector layers, each own markup , clustering strategy.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -