Hi,
in my application, i tried to display a mapfield on a mainscreen. But when i call the mapfield screen, i only see a diagonal striped display with the text "No data available". Below is the code i use to display the mapfield:
Code:
public class MapScreen extends MainScreen {
public MapScreen() {
super();
MapField mapField = new MapField();
mapField.setZoom(3);
Coordinates coordinatesToConvert = new Coordinates(54.15734,9.08128,50);
XYPoint xyptCartPlain = new XYPoint(Display.getWidth(), Display.getHeight());
mapField.convertWorldToField(coordinatesToConvert, xyptCartPlain);
add(mapField);
}
}
The build in Maps Application works fine.
Regards,
Grinarn