Creating a simple program in Java

What is the best way to make a simple mapping program? I am trying to get a background image that will have an overlay, so when the user clicks on the desired area on the map, they actually click on the overlay (buttons on the selected areas). The background image is quite large and I can’t understand how I need to pan the image and update the overlay. In short, I am trying to make a very simple program similar to Google maps, but without scaling at the moment.

+3
source share
2 answers

I used Piccolo in the past for similar projects. You say that you do not need scaling, but when it appears as a requirement, you will be glad that you have the opportunity! Piccolo has built-in pan and zoom.

I would not try to create my own component, and it can easily become a confusing mess when a code collapse occurs.

+2
source

If you don’t want to reinvent the wheel (which I suggest you don’t), try integrating Google Maps into your application. The Google Maps API is available .

, Google GeoTools. - , OpenGIS.

+2

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


All Articles