Hello, since some time (I don't know, maybe it's a new update) the name of the place is not displayed correctly. It doesn't match the actual place where I am.
I am attaching my code here and if I may ask someone please tell me what I am doing wrong?
function drawLocation(dc) {
var x = $.SCREEN_WIDTH / 2 + 24, y = 76;
var observationLocationName = Weather.getCurrentConditions().observationLocationName;
observationLocationName = observationLocationName == null ? "--------" : observationLocationName;
var comm = observationLocationName.find(",");
observationLocationName = observationLocationName.substring(0, comm == null || comm > 14 ? 14 : comm);
dc.setColor($.colorLocation, Graphics.COLOR_TRANSPARENT);
dc.drawText(x, y, $.fontSmall, observationLocationName, Graphics.TEXT_JUSTIFY_CENTER);
}
}
Thank you