OSM change default marker look

872 views Asked by At

I am working on a desktop Java application that uses OSM maps and jMapViewer api in order to view, add Markers etc on the map.

jMapViewer

As you can see at the link above, the markers are represented as dots. To be specific, there is a class "MapMarkerDot" that draws these dots every time I add a marker.

This looks really bad in my eyes. Is there any way to replace these dots with something more "good looking"?

A solution would be to download a marker image and place the image instead of drawing the dot, but I can't figure out how to do this. Any suggestions/solutions?

1

There are 1 answers

1
MaM On

You need to implement your own class that implements the MapMarker interface and renders markers differently https://josm.openstreetmap.de/doc/org/openstreetmap/gui/jmapviewer/MapMarkerDot.html

You might also consider to switch to JXMapViewer2.