if (!checkTileExists(x, y, zoom)) { return null; }
try { return new URL(s); } catch (MalformedURLException e) { throw new AssertionError(e); } }
/* * Check that the tile server supports the requested x, y and zoom. * Complete this stub according to the tile range you support. * If you support a limited range of tiles at different zoom levels, then you * need to define the supported x, y range at each zoom level. */ private boolean checkTileExists(int x, int y, int zoom) { int minZoom = 12; int maxZoom = 20;
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
We don't expose that API because it would be a bit of a pain to manager. You can just add a components into the map and group them accordingly in a map. Then remove/add a group based on its overlay layer.