I am evaluating JxMaps library.
I cannot set a new icon to a marker.
Marker marker = new Marker(map);
marker.setPosition(new LatLng(39.833851, -74.871826));
ImageIcon newIcon = new ImageIcon(this.getClass().getResource("/resources/flag.png"));
marker.setIcon(newIcon);
My problem is that marker.setIcon method does not accept ImageIcon attribute but String.
How can I change it a default icon ?
Here is a link to APIs: https://www.teamdev.com/downloads/jxmaps/docs/index.html