
Am 24.04.2017 um 07:58 schrieb Steve Litt:
On Mon, 24 Apr 2017 00:58:27 -0400 Martin Owens <doctormo@...155...> wrote:
I did this many years ago if's an interesting example for you:
Wow, although that's exactly what I need the user to experience, that's not at all how I figured it would be coded. Your <svg> element contains exactly three paths: One for the back button, one for the entire map, and one for something else (perhaps the ocean?). The map path consists of several continues followed by a z (close the path?) and then a M (Move to another point without writing?). I guess somehow you parse that all apart with your three Javascript scripts.
- Somehow, the page source doesn't reveal everything. You need to use the inspector, to get all the groups and countries (in reverse to how it works in many other cases, where the active DOM is pruned, here it's enhanced). It loads 'world.svg' in the js, instead of in the html source.
Maren
I had always figured my map would consist of one path for each clickable region, but that's not at all how your map appears to work.
I'll study yours more tomorrow. It's insanely cool.
Thanks,
SteveT
Steve Litt April 2017 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user