What would be the advantages/disadvantages of including Google maps in an android app, using the actual Android Google maps api as opposed to using the JavaScript Google maps api inside a WebView ?
MapView inside Activty: I think this is the best option, considering all of the classes you have access to (ItemizedOverlay,Overlay,OverlayItem). It provides a great framework to use with MapActivity. If you're using a full screen map, or a large map, or are doing things with more than 10 or so waypoints, I would use a mapview.
Javascript MapView - I would use this for a smaller-sized map (quarter screen) or anything with one or two waypoints. Keep in mind this is a lighter-weight wrapper over MapView, so heavy processing for multiple overlays may take longer, because you'll have to re-execute your JS code and refresh the WebView.
Overall, IMHO, I would use a MapView inside of a MapActivity because it provides a beefier interface, as well as access to some of the better classes.
Good luck!
There is a realated thread here
the aim of this one is to found which one correspond best to my needs for my next app.
I have started to analyse some of the basic features of javascript v3 and android v2.
Related
I use the util library maps android for Cluster item.
I have many marker but It's too slow on navigation.
Is there a way to optimize this apps?
You can see this video : https://youtu.be/lboDrBmI6xo
Here are suggestions to Optimize Maps with Many
Makers:
One approach at simplification is to render markers on the server. Google provides two services built into the API that make this easy to
achieve: FusionTablesLayer and KmlLayer. If you'd prefer to perform
computations on your own server, this can be accomplished by creating
a custom overlay from imagery that is pre-rendered, or rendered on the
fly.
Another useful optimization technique involves viewport marker management: restricting the markers rendered on the map into only
those that exist within the viewable area.
If you still want to display many markers on the map, consider creating a custom overlay that displays markers with minimal
functionality. This approach may garner performance improvements over
standard markers provided by the API.
Read more on the docs for optimization tips.
I believe that marker clustering is the way to go on Android and we have a utility library to use for this. You can check it out here
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.
I am trying to implement an android application using maps. On a little research, I have narrowed down to either GoogleMaps or OpenStreetMap.
Since GoogleMaps doesn't allow us to save(cache) the maps offline, i have decided to use OpenStreetMap(OSM). But in that the satellite imagery can't be viewed after a zoom extent. So am planning to add my own images in OSM.
Is it possible to do so?
PS: This is know if it is feasible. I haven't started implementation yet.
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.
I am confused between webview and mapview, which is better?? in terms of flexibility, overlays, usage, load-speed, zoom levels etc etc
MapView is the native built-in class for doing Map related stuff. WebView is a native element for the browser. It has a javascript to Java bridge, so you can call Java methods in your native Android application from the JavaScript page.
For my personal experience:
WebView is less flexible, kinda sluggish for UI interaction.
MapView has better optimizations and has richer content.
MapView has definitely better caching.
MapView loads faster (imo)
The MapView api's make life much easier. Zooming/handling etc is great.
Though if you are good at JavaScript and the V3 you should go for WebView. It all boils down to the feature set (WebView has a larger feature set, or so I've heard) that you want to use, your project duration (MapView is faster and easier to code for)
Those 2 classes are completely different.
The WebView class is there to show a webpage, the MapView class is there to intergrate Google Maps into your application. So depending on what you want to achieve you can pick one.
Since your tags say Google and Maps you should use the MapView, see also the Google Map View tutorial on the Android Developers site.
--
for future questions please provide some more information in your question.