how we can use mapbox-android-sdk library in android? - android

How we can use mapbox-android-sdk library for offline Maploading in android and how we can add MBTiles and Vector tiles for draw offline Map in android ?
I have create a project in which i have use mapbox-android-sdk library by this is load map only in online . Now what should i do for that .

Have a look at Brad's answer here for how to dynamically save/cache tiles.
Using mbtiles looks to be fairly straightforward and is briefly outlined here.

Please take a look at the following mapbox android offlical example link to download offline map in mapbox android SDK :
https://www.mapbox.com/android-docs/maps/examples/download-a-simple-offline-map/. In order to give user an option to download a region in map - create a map screen so that user can select a particular location to download. From that selected location as shown in the example we have to pass the top-right point of map (north-east) and bottom-left point of map (south-west) point of map as attribute, so that the particular location will be downloaded. Mapbox recommends to use the offline locations plugin so that it will be downloaded asynchronously. Please refer this link for offline locations plugin : https://www.mapbox.com/android-docs/plugins/overview/offline/

Related

Offilne Maps with MapBox in Android

I am working on an android application which contains modules like offline maps.I want to download map (data set) of a particular area based on user input then user can select two locations start and destination and i need to draw routes on the map. can any one please help me to solve this problem.
mapsforge was built just for that. It is incorporated into many projects.
GitHub: mapsforge
Mapsforge gives you full android samples that demonstrates the usage of the offline mapping infrastructure with the usage of their Android libraries.
In addition, the map tiles are free and can be downloaded from here

Mapbox How to select POI point from own style map on mobile?

I am trying to use Mapbox mobile SDK to shows my information.
I just confused for How to select a POI on map,
Here is my problem:
I am using my style map, which had been combined my data inside. I wish to show the detail of the POI point by touch the point.
I have implemented this feature on my website version.
Now, I want to apply this feature on my mobile version.
and I have no idea that how to select a POI point from the map....
anyone can help me to workout It, please???
Also, my POI points are over 600000+. It is not possible to query a GEOJSON from a server. Especially, I have got so many points, and the GEOJSON file is extremely large than any other project (800MB). I can not make the POI like a simple "Annotation".
You should be able to use query feature at to get the selected GeoJSON marker and add additional information. Check out this indoor map example that i'm currently working on. I add a GeoJSON source to the map and have an onMapClickListener. Inside of it I query the GeoJSON layer to determine which room the user selected. You should be able to do the same with a circle layer.
This features coming in both the next Android 4.2.0 and iOS releases (you can use the Android beta.3 for now). For more examples check out the Demo app. Let me know if I need to clarify anything.

Offline and Online indoor map with open street map.

I designed indoor map with Josm. I try to doing indoor map project with android.
I made open street map on josm and I asking question about it on OSM HELP PAGE and they said use tilemill for showing your indoor map. But tilemille suport .shp file and I could not convert it on tilemill.
you can download my work josm HERE
My question is.
How can I design this indoor map on mapbox-TileMill. Or Could you give other advise
exxample project and I found this project for example When I import it ,Why it does not show map
And How can I show map on my android application
could you give me advise. I am so mixed.Could you give me open source project or example
If you are looking for a way to load .osm map to tilemill there is a way. I did it following instructions in this guide. After you have your tiles created using Tilemill you can either either export them to your mapbox account or as mbtiles. Then you can use the mapbox android sdk to create your indoor map app.
Another alternative is to use mapsforge. They provide a mapwriter plugin (which is a plugin for osmosis)that allows you to convert .osm files into .map files. This .map file can then be loaded into the SD card and be used to render maps. However this option will only allow offline maps.
I hope this helps.

How to use Mapsforge online mode

How can I implement map in my android app. using mapsforge lib (avoiding the creation of map or reading a map file) ?
Can I download tiles from OSM server ?
In this article they demonstrate only offline mode.
Take a look at Mapsforge's sample code at https://code.google.com/p/mapsforge/source/browse.
DownloadLayerViewer demonstrates how to get tiles from the OSM Mapnik server. (Do check OSM's Tile Usage Policy before using this in an app!)
There is also a class for OpenCycleMap, which works in the same way.
If you want to use a custom tile source, take a look at DownloadCustomLayerViewer. This example shows you how to specify the URL from which you want to donload the tiles.
The tile downloading feature has been removed. See this discussion on the mapsforge mailing list. If you only need that specific feature, you can revert to an older revision. I can't remember the exact revision but it should be a revision that was released about one month before the linked comment.

gps app for android useing shapefiles

I'm very new to android development. I would like to make a android app for my senior project. The idea for the project is this: build an app that will show one's location on a map be it on a road or path. So it looks like using google maps and the Locator class this can be done. But here is the thing I have shapefile for the path system in esir format. It looks like one could export this from ArcGIS as a KML file, and then overlay it on top of the google map. Now of course I would like the GPS location displayed to the user to "snap" to the nearest path if it is in say 15m of the path to help hide the inaccuracies in the GPS. I would also like to be able to place notification icons on the map, e.g. path condition, that could be updated from time to time. I do also have shapefiles for the roads, streams, lakes, etc. for the area, so I could just use them instead of google maps. Is using google map and overlaying the KML file the best way to do this? Does this sound like a doable project?
Of caurse it's a doable project .there are many solutions for this kinde of projects for your base map you can use google map , openstreetmap ,Bingmap (personnaly i prefer openstreetmap ),open layer ..... , After that you can choose between google map api or Arcgis Api (personnaly i think that arcgis api is more Professional including all services of a GIS ) ... ,for Gps there ara many solutions one of theme is to update your Gpx file and project it like a graphic layer in you app .

Categories

Resources