Mexico map with states


Click/touch detection on states irregular areas
Click/touch each state to trigger aa method, it detec ...


by DAVID HF


Price History +

Click/touch detection on states irregular areas
Click/touch each state to trigger aa method, it detects with precision the area of the clicked state.
Also, click in the thin space between states, and it triggers the detection of the closest state.
This asset includes a method to show the name of the selected state and area in km.

Color states independently
It presents each state in the color you define, Includes examples of single color and a heat map going gradually from red to yellow. Useful in business intelligence charts also.

Zoom, scroll.
Includes buttons to zoom in/out, also listens to pinch gesture.
When the map is larger than the screen it can be scrolled with mouse or swipe gesture.
State names.
Shows state names as floating text.
Names don't overlap on small areas, they are configured in a resource file to be shown at a certain level of zoom.

Lightweight.
Area detection does not uses images, just a 100kb text resource file.
To show the map only one sprite is used.

Fully customizable C# code.
A prefab, a sprite, text data files and a C# script is all it takes, so you can modify at your needs.

More info.
http://davidhf.name/AssetsForUnity/MEX_Map_Documentation.htm