A
A
Anton Egorychev2015-05-14 20:22:31
JavaScript
Anton Egorychev, 2015-05-14 20:22:31

How to highlight the elements of an interactive map with different colors?

Hello!
I need to make an interactive map for the site.
On the map, Russia is divided into federal districts and several CIS countries.
Project on Github - https://github.com/gore88/sng_map
Help make carved counties and countries different colors. Russian districts should be gray all except the Volga district, it should be made red. CIS countries should be different colors.
Implemented on the Raphaël library, using an SVG file.
Demo - sngmap.ucoz.net/index.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-05-15
@k12th

You can take a leaflet and google the outlines of countries and districts in GeoJSON, then you can color anything as you like, and it will still be interactive, with zoom and blackjack.
A simpler option is to google the same outlines in SVG, well, good old :hover in styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question