So i am new to JMapViewer (and StackOverFlow). What I am currently trying to do is to develop a real time graphical representation of a network, where the background is a map of the area. So far it's been going well, however one issue is bugging me. When I create a MapMarkerCircle, and set the name, I want to create a new line, to show information below it.
I've tried "\n"
, but this won't work. I've tried enclosing it in html format
and using <br>
to break the line, but again, it just prints the entire thing as if it was a string.
If anyone has come across this issue before, I would really appreciate any help.
Here is a small bit of code where the problem is occuring. Note that "RateCircle" extends "MapMarkerCircle".
Coordinate dataPoint= new Coordinate((pmpLinks[i].getRecieverSite().getLat()+pmpLinks[i].getTransmitter().getLat())/2, (pmpLinks[i].getRecieverSite().getLon()+pmpLinks[i].getTransmitter().getLon())/2);
String rateStringName="<html>"+inRateAsString+"<br>kb/s</html>";
pmpCanopyRatePoints[i]=new RateCircle(allPMPrateLayer[i],rateStringName, dataPoint);
map().addMapMarker(pmpCanopyRatePoints[i]);