Display with mapBox offline raster from my website - android

I'm looking for a library to display a raster, host on my website, on an Android device.
I'm trying to do that with MapBox but I just read that:
At this time, the offline database format is private. In the future, we may publicly document the format and implement Mapbox Mobile APIs for consuming pre-built databases.
Does it mean I can only display the raster online?
Is there anyway to just point tiles' source to a internal folder?
Should I use OSMDroid instead of MapBox?
Thank you

You can use 4.2.0-beta.5 of our SDK and work off this example to add a raster layer from a web map service. I'm not sure what you mean by offline when you are requesting to add a web map hosted on your website.

Related

I am developing an Android app with ArcGIS offline map support. For that which one I have to use? MPK or MMPK package? How to download it?

I am developing an Android app with ArcGIS offline map support. To work with an offline map in android what I have to download? MPK or MMPK? By which tool I can generate the corresponding package? Does anyone have previous experience on the same? I am using com.esri.arcgisruntime:arcgis-android:100.7.0 dependancy. The documentation are totally confusing for me. We have already purchased a Development builder starter license too. Any help would be appreciated.
There are two main ways to use a map offline.
Create a Web Map in ArcGIS Online and take that offline. This does not involve an MMPK.
OR: Create a MMPK using ArcGIS Pro (a desktop product for Windows)
I expect you might want to consider option 1?
Create and save a web map in ArcGIS Online.
In the Settings ensure it's enabled for Offline. You should also ensure the layers you're using are offline enabled.
Use the OfflineMapTask to generate and download the offline map.
This is explained here, but you might also find this technical session helpful.
If you need to go the other route of generating an MMPK, you will need ArcGIS Pro.
MPKs are not a format that Runtime supports.

Android app with offline map and database

I made an android application with Google Maps using Maps API v2 and the app is getting the data from JSON generated by PHP from MySQL database. This works great while phone is connected to the internet.
My question is what is the best way to make app usable offline as well. I need just one small area for offline availability and I can download JSON to the phone storage and parse it but the map part is my main concern. As much as I read this won't be possible with Google Maps but what are the alternatives?
There's an open source Library available out there named OSMDroid which replaces Google MapView classes. It also includes a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.
You can follow this link.
OR
You can follow Mapsforge which provides free and open software for OpenStreetMap-based applications,offers a library for ad-hoc map rendering on Android devices
Go through this link for mapsforge usage

Can working with ArcGIS on android without ArcGIS server?

Can I share my ArcGIS map with out ArcGIS Server?
I need to make my project for Android device and use ArcGIS to create map.
I need to use client-server in my project but I don't know how to do?
If possible can anyone please help me how to start with?
Thanks to read it. Any help will be appreciated.
Yes.You can publish your map directly from ArcGIS Desktop. Make use of the File >> Share As >> Service.
You need to publish a map service. You need to enable Mobile Data Access if you need any data synchronization or other advanced things
And finally you need to make use of ArcGIS Android Runtime for developing applications using the ArcGIS tools for Eclipss and build the application of your choice.
Refer to ArcGIS Resource Center for Step by Step Tutorials.
I wouldn't recommend to use ESRI if you are trying to develop an Android Application without ArcGIS Server which means your application is not multi user.
There are bunch of opensource gis framework you can use.
However, I'll draw a path to you to follow:
First of all, If you want to use ESRI on your mobile, you'd need to buy ArcGIS Runtime license.
Or you can use your ArcGIS Online Developer account for Lite account. See:
https://developers.arcgis.com/pricing/licensing/
As #Govindran said, you can publish your map as map service and download into your mobile. But if you use GeoServer, you just paste your WMS/WFS address into your mobile app.

Read coordinates from WMS or WFS service

I'm currently developing an application for IOS, Android and Windows Phone with google map based on Open Data. The Open Data is available on WMS or WFS format but I want extract the coordinates from this services to obtain JSON (because I want put informations contains in it on the Google Map with personnal informations).
I tried to get the flux with geoserver and expose it as JSON for the interesting layer but it doesn't work.
How I can do that ? Is it possible to get it directly on Android, Windows Phone and Iphone and add it to the google map ?
Thanks
WMS is known as Web Map Service and does not usually provide data (although you can use getFeatureInfo, but not all geoserver implementations support json output), instead you can use WFS requests (get or post) to obtain data you need.
WFS does support json (using parameter OUTPUT=application/json ) and allows filters (both spatial and based on attributes) and limit features. You should check the official documentation for detailed query specification; I suggest to use version 1.1.0

How To Develop LBS app for Android

I want to develop a LBS app for Android,but I do not know how to begin the project.
I want to use the Google Map API to use the map data of Google.The user can also add information on map,and the information can show on the map.
(For example,an user find one street is not safe,then the street will be red on the map.)
And I use the MSSQL SERVER or Oracle to store the information,but I don`t know how to get and use the data when I need it,should I use a GIS Engine(like ArcGIS)?
How can I show the information on Google Map?And Which GIS Engine I should use?
I also have another idea to use the Google Maps Data API.
Anybody can give me some suggestions?Thank you very much:)
One of the solutions could be following:
You can use MSSQL Server 2008 or Oracle to store data. PostGIS is even better because it's free and has a solid spatial capabilities.
As GIS engine you could use Geoserver. It works with all databases mentioned above. From my own experience it works really good with PostGIS.
If you want a native Android app you can go ahead and use native Google Maps APIs and manually construct WFS requests in order to communicate with Geoserver when storing data in the database.
Another option is to built it as a webpage and use coming OpenLayers 2.11 javascript library which has great support for mobile devices. It's also great at constructing WFS requests so you won't need to handle this stuff manually. If you still want an Android map, you can use Phonegap to wrap you OpenLayers webpage into an app.

Categories

Resources