Hello,
Is it possible to change the color of the red tiles?
I use offline map, my JAR is about 20MB.
I suggest to delete map tiles to save storage.
Thanks for your help
What is that "MyJaredOpenStreetMap" ???
What is that "MyJaredOpenStreetMap" ???
It is just a sample, actually any GeoMap has setMissingTileImage method.
Thanks Jaak.
But I have doubt like where do I pass parameters like "/res/raw/", 256, 1 and 16, to get the image from raw resource?
Do I need to inherit the GeoMap?
Posting http://www.nutiteq.ee/map-problem-mapclicked-problem-addplace-problem has source of it attached. The issue with SDK bundled JaredOpenStreetMap was that it assumes file names with style zoom_x_y.png, but Android SDK (at least some versions of it) hates filenames starting with number. So myjared uses file names starting with "t".
Actually, when I look to the code, it looks equal using bundled class, then you do not need this MyJaredOpenStreetmap, and also Android SDK should be happy:
final GeoMap offlineMap = new JaredOpenStreetMap("/res/raw/t",
256, 1, 16);
Hi Jaak,
Thanks.
Setting of different color in place of Red color in tiles, not working properly.
If I set that, then all over the specified color is coming in stead of Maps. :-(
How to solve that ?
I would need application project package to see what is happening there.
Hi Jaak,
If You need to see my app code, I will send you shortly. Thanks for your response.
GeoMap has method setMissingTileImage(Image missingTile). Sample with solid color fill:
final GeoMap offlineMap = new MyJaredOpenStreetMap("/res/raw/",
256, 1, 16);
final Image missing = Image.createImage(offlineMap.getTileSize(),
offlineMap.getTileSize());
final Graphics graphics = missing.getGraphics();
graphics.setColor(0xFF000000);
graphics.fillRect(0, 0, offlineMap.getTileSize(), offlineMap.getTileSize());
offlineMap.setMissingTileImage(missing);
mapComponent.setMap(offlineMap);
/JaakL