Custom Google Map Types - android

I'm looking for a way to use custom map tiles with the Google Map API V2 for Android.
I'm writing an application that will create it's own maps in real time with data that are comming from a robot.
The application need to show to the operator this map. The operator need to interact with this map, letting way points, etc.
I want to use the GoogleMap engine in order to do the same that in this page :
http://cdn.mikecouturier.com/blog.mikecouturier.com/tilesgenerator/index.html
The problem is, this guy use the [javascrip API]
But me, I want to use the [Android API]
Are there any way to use Custom tiles map on android with the GoogleMap Engine ?
Thank's a lot
PS : I'm already looking how to use ArcGIS. But, i prefer using API without paying license, thanks

By using GoogleMap.setMapType(MAP_TYPE_NONE) you will get an empty map.
Using e.g. the CanvasTileProvider I have described in the answer to this SO question you may then draw anything into the tiles.

Related

Android Custom Dijkstra Map

I need to implement a map for a shopping mall in my app. This map needs to have a way to visually mark the fastest path to go from one place to another.
I currently have two options in mind. I could use the Google Maps API, overlay the shopping mall's picture and try to use some algorithm to mark the best route. Or, I could just place the picture and manually make an algorithm to mark the path (probably Dijkstra).
Yet, it's my first time working with Android, and I don't really know which one could work the best, and which libraries I could use.
I'd appreciate any tip or suggestion.
Google map has an android api that you can directly embed google maps into your application. You can also draw overlays using its api. Take a look at
google map android api

Framework for custom maps

I want to develop a journey planning app that will use the customer's own custom created map tiles, custom configuration file, custom coordinate system etc.
My question: Is osmdroid framework suitable for this kind of purpose? If it is, can someone give me a hint about where to start in the framework to create my custom map? And if it's not can you give me some suggestion about where to look for this kind of framework
Thanks for your time.
Does "own custom created map tiles" mean that the customer will supply pre-rendered map tiles, e.g. via an own tile server? If so, then osmdroid could be an option for displaying the map. But you will still need a router. osmbonuspack allows you to use various online routers.
If you plan to render the maps yourself then take a look at mapsforge. It also provides offline routing for you.

Using nutiteq to Get GoogleMap's Tiles

hello guys i have replaced my GoggleMaps in my application due to its lack of closing map and so clearing heap on demand, and now im using nutiteq instead, and im trying to reach google map's tiles . as the nutiteq has explained it uses parameters likes this :
"http://otile1.mqcdn.com/tiles/1.0.0/osm/{zoom}/{x}/{y}.png"
and the request will be like this :
"http://otile1.mqcdn.com/tiles/1.0.0/osm/3/5/1.png"
but the google's parameters is like this:
https://maps.googleapis.com/maps/api/staticmap?center=x,y&zoom=z&size=400x400
but the request needs a double coordinate some thing like this :
https://maps.googleapis.com/maps/api/staticmap?center=42.05123,-70.31234&zoom=1&
size=400x400
any one who familiar with nutiteq, can please explain how can i make it to use double coordinates instead single integer at the request? thanks alot
You should create own custom DataSource, where you calculate tile center coordinates from x/y/zoom (see code samples here) and make Google Static map request based on this.
There are two questions still:
technical: matching of tiles can be inaccurate and Google logo will be in each tile
legal: according to my understanding it is violation of Google Maps terms of service. Last time when I checekd they allow to use Static maps only in web page, not in native mobile app. If you are sure you can use it (or ignore the legal issue), then why not to use their tiles ?

Google Maps Drawing Tools for Android

I need to make an Android app where the users have an option to draw a polyline on Google Maps and when the touch is removed, then do some action with the plotted polyline. Drawing and performing action is secondary. But the question is how could I achieve this?
Is there any predefined drawing tool (something like http://googlegeodevelopers.blogspot.in/2011/11/make-your-map-interactive-with-shape.html for JavaScript) to be used in google maps, or do I need to go with customization? Please suggest, or provide any links.
And can we extract the points to compare them with the ideal answer which was to be traced?
But the question is how could I achieve this?
With code. ;)
do I need to go with customization?
Yes. You would have to code all the functionality yourself. AFAIK there is no library that does that and of course Google Maps Android API v2 doesn't (and most probably won't) provide such functionality because it is too specific. I still think this would make a pretty useful library.
And can we extract the points to compare them with the ideal answer which was to be traced?
Yes. That would be simple after you are done with everything else.
Polyline polyline = ...
List<LatLng> extractedPoints = polyline.getPoints();
Simply use google maps api Google map API v2 following link might help you with the code.
code reference

Any way to change the Map used by Google Maps API in Android?

I'm trying to make an Android application that will display a map of a local area only (a big building and surroundings), and I want to know if it's possible to take the Google Maps API and modify the map it's using to be the map I made myself.
If this cannot be done, I will ask my question in a broader sense: How can I create an interactive map app for Android that will use an image made by myself?
I want to know if it's possible to take the Google Maps API and modify the map it's using to be the map I made myself.
Not through the Google Maps add-on for Android.
How can I create an interactive map app for Android that will use an image made by myself?
The same way you implement 2D games: draw it yourself, probably using the Canvas 2D API.
It is possible that there is a third-party library for handling this. For example, you might peek at the OSMDroid code, as that is open source and handles map tiles coming from OpenStreetMap. In theory, one should be able to create a general purpose "map" widget with pluggable tile sources, where the widget handles pan, zoom, etc.
I note that you have the app-inventor tag on this question -- App Inventor is going to be incapable of doing this any time soon.

Categories

Resources