Display maps from raw SVG data in Java

In my application, I need to display the locations and routes of large circles on a map that displays in PNG and then displays on the Internet. To do this, I just use the world map (in fact, NASA Blue Marbel) scales to various “zoom levels” as the base image and displays only the part that corresponds to the final image size and fits all the elements for display. So far ahead so far.

Now I came across Wikipedia, amazingly clean SVG maps that contain all country codes for easy reference, and I was wondering if I could use them to have more customized colors and high countries, etc. So I did a bit of search and searched for Java libraries that would allow me

  • load an empty SVG map into memory
  • makes it easy to link / select specific paths
  • do manipulations with coloring, stroke width, etc.
  • render a buffer image as a background for paths / nodes of a large circle

What I often met was Batik, but it looks like it's a really heavy structure, and I'm not quite sure if this is what I'm looking for. I recently played with Raphaël and I like the way it handles vector graphics in code. If the Java infrastructure uses the same interface for my purpose, that would be nice.

Any recommendations, which toolkit will be used for my purposes?

+3
source share
1 answer

It looks like ILOG can do what you want, but unfortunately this is not free.

+1
source

Source: https://habr.com/ru/post/1736870/


All Articles