Hey,
I have a question regarding Google Maps.
The standard tile size is 256 but practically it's unusable due to copyright notices which are strewn all over the map.
To workaround this Shai recommended in a different topic to increase the tile size. On the first sight it fixes the problem (tile size = 512):
But if I go into another menu and then go back to the map, it's unusable again. Not only the copyright notices are back, but also the map is chopped (take a closer look at the streets):
The function is implemented like this:
@Override
protected void beforeMap(Form map) {
Util util = new Util();
map.setLayout(new BorderLayout());
map.setScrollable(false);
final MapComponent mc = new MapComponent(new GoogleMapsProvider("my api key"));
GoogleMapsProvider.setTileSize(512);
Image i = fetchResourceFile().getImage("current_location.png");
util.putMeOnMap(mc, i);
mc.zoomToLayers();
map.addComponent(BorderLayout.CENTER, mc);
map.show();
}
How can I fix this problem?