mapbox/wax — Issue #170: Reacting to layers attributes
Author: pmarkun
Created: 2012-02-25 20:26:40+00:00
State: open

Hey all,

I don't even know if this is the right place to ask this (still trying to figure what is the boundaries of tilemill/wax/modestmaps).

What I want to do is a map where you can add some pins (just like in a RISK game?) and that the map reacts according to how many pins there are in a specific country (for example).

I can accomplish this by both creating another GeoJSON, KML and loading it externally.
Or I can do it by using the templates and storing the value on a hidden div (and then reading from it with javascript).

But those seems a little bit clumsy. Since I do have the information I need (which country, 'maximun pins numbers', etc) on the tilemill authored mtiles. It doesn't make much sense for me to replicate this elsewhare so when I click I can be aware of which shape I'm clicking on...

Is there a smarter way of doing it?

(Sorry if sounds confusing. Not good enought english and not good enought knowledge on how the system works to explain properly. And again, sorry if this is now the right place to ask!)