How to display custom map service on android mapview? - android

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.

Related

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

What is the best android liberary to render vectorial tiles (geojson) from osm data?

I'm developing an Android application and I need to show a map from OSM data, add icons to it, and even move those icons.
I've already setup a tile server "TileStache" and it returns the geojson tiles.
Please Advice.

How to identify the roads on the map to route just as Google Maps does?

do you know how can we create our map and show the ways from a certain locations to destinations ? Without using google map , just using a picture of a map , is there any way to draw routes on it?I am not asking projects or codes , just need some suggestions related to drawings and considering the obstacles in the way ?Thank you
You should have your way points in somewhere(maybe in db or in xml file etc) and also for getting map base you should have a map provider like yahoo, bing, google or openstreetmap(which is free to use - no api key needed considering others)
after having these two sources you can use Geoserver(which is opensource map data manipulater and provider) to put these sources together and get them as map base image.
considering your "just using a picture of a map" is an owerwellming issue. Because you will have to do some calculation to find where to put your points programatically. So Geoserver does that automatically.
also I suggest you to hava a look at osmdroid and osmbonuspack they may help.

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.

How to draw custom map tiles without OSMDroid apis in 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

Categories

Resources