How to draw custom map tiles without OSMDroid apis in Android? - android

I went through lots of searching the web which shows how to draw custom tiles on top of Google Maps using OSMDroid apis. I have my custom tiles png files ready to use.
But I am looking for a way which will help me to draw custom tiles on top of default google map tiles. I also found this link which says to use overlays for the same.
Now I am confused between the overlays and custom tiles; please correct me if I am wrong, as I think overlays are the one we use as markers on top of a map.
How can I draw custom tiles without using OSMDroid in Android?

An overlay is just a layer, it can contain pins or tiles.
You need an overlay to display your tiles.
OSMDroid is the only current way I know for displaying tiles over Google Maps.
You can see how to use it there:
https://groups.google.com/group/osmdroid/browse_thread/thread/1e2219b8e2d28edb/6c1ed8e13520fce1

Related

How to display custom map service on android mapview?

How can i add my own map tile server with OSM and display it on android mapview, URL Example : http://abc/osm_tiles/{z}/{x}/{y}.png?
Glad if i also know how to apply markers, polylines, polygons on top of it.
Take a look at osmdroid.
How to use the osmdroid library already covers lots of the things you asked for.
Creating a custom tile provider chain explains how to use your own tile server.

Overlay image google maps

In my app I added the map of Google Maps and you can navigate within a given area (which can not be done through maps as it is not drawn). Now I would like to customize the map and add image overlays to the buildings so as to better target people. Let me explain with an example:
In the picture is the image of the building that I customized.
Now I want place the image over the google map. I saw that there GroundOverlay but I can not place it properly.
Does anyone have any tips?
I would recommend using Polygon Shapes instead of Images. Working with Images like you intend to do, would probably be very hard later on.
You might want to look at:
https://developers.google.com/maps/documentation/android-api/shapes

How to add custom layer to Google Maps

I am developing an android app in which I am capturing location using Google Maps API v2. I have a large satellite image ( greater than 500 mb ), this image is geo-coded. We need to display this as one of the layers in the Google Maps like Google map has a choice for satellite imagery. How can it be done. As for using tile overlay we need tiles but I have a single image and that to it is very big in size so I cannot use ground overlay also. I am kind of stuck right now.
Try this instead of custom layer overlay we add
https://developers.google.com/maps/documentation/android-api/tileoverlay
This is doable but you're going to have to do more. You will use Tile Overlays method, but since your file is too big, you'll be needing to cut it in equal dimensions, 256dp for example.
To cut your big map file in tiles you'll be using MapTiler. The software will do the cutting for you and will generate the map files. Kudos for this thread for the additional info.

Creating custom maps over Google Maps is possible nowadays?

A few years ago we wanted to add a custom map over Google Maps (like the World looks like Midearth), but back then it was not possible. Now, I can see multiple apps that have their own overlay over Google Maps.
I tried creating my own map via Google Maps using their suggestions, but this was only for pins and routes.
What I need is to have the real cities on the map (like Rome, London, Paris), but with my own custom graphics for everything (map tiles, pins, etc.).
What document shall I read for this? I am sure I missed something on Google Maps.
Yes! It is possible with Google Map V2. You should consider using TileOverlay.
Essentially, every time GoogleMap wants to draw tile for specific coordinate - it asks you to provide this tile. You can use either static tile (see TileProvider) or you can provide URL, so GoogleMap goes to your web server and downloads this tile automatically (see UrlTileProvider)
I think what you want is GroundOverlay which can be any bitmap image that will be displayed on top of the basemap. You can even control the translucency of your map.
You most likely want to have your map image oriented north up and be scaled according to Mercator projection if the scale of your map is large enough to include Rome, London, and Paris. But if your map covers a smaller area, you don't need to worry about Mercator projection.

How to use custom tiles in the OpenStreetMap?

I am trying to create an offline map for my Android application. I'm hoping that the MapView I use will be able to have my tiles as an overlay. To do this, I have begun looking into using Mapsforge and trying to figure out how to use my own maps. It seems that you need OpenStreetMap data, and I am not sure how to create this for the tiles I already have. OpenStreetMap's wiki talks about it here, but I haven't been able to decipher it.
To be clear, this is what I have so far:
Original map image.
Tiles for that map image.
Coordinates I want to use for the bound box.
I'm just not sure how to go from that, to a map which Mapsforge can use... Thanks for any help!
Edit: I also have a .kmz file for this custom map, but that can only be opened in Google Earth, not on an Android device, I think.

Categories

Resources