Been searching for ages and can't find something开发者_C百科 that explains why this is happening.
I am trying to add a MapField to my application, but when it loads it just says No Data.
MapField mMapField;
Coordinates mCoordinates;
mCoordinates = new Coordinates(28.135085, -25.900461, 0);
mMapField = new MapField();
mMapField.moveTo(mCoordinates);
mMapField.setZoom(3);
add(mMapField);
BB Maps works on my device and Simulator, but this MapField works on neither the simulator or the actual device, I have a BIS data plan on the device.
Any help will be appriciated.
Thanks
The code that I use, which works on both the simulator and the device is:
MapField _map = new MapField();
Coordinates _location = new Coordinates(45.0, -75.0, 0);
_map.moveTo(_location);
_map.setZoom(6);
add(_map);
So perhpas you should use:
MapField mMapField;
Coordinates mCoordinates;
mCoordinates = new Coordinates( -25.900461, 28.135085, 0);
mMapField = new MapField();
mMapField.moveTo(mCoordinates);
add(mMapField);
精彩评论