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
Related
I am having trouble organizing my markers. I have a bunch of them, and the problem is that there are so many markers close to each other. Making it impossible to navigate using such polluted map.
Is there a way to cluster all those markers or any other way to make it less polluted? I have made a search around Mapbox's website, and thanks to a developer, I have found a way to implement such method, but any of those can be used with markers added within the map ( mapboxMap.addMarker() )
Example:
Data Clusters.
Does anyone know how to organize such markers? Thanks!
#Sem you could create a cluster of markers by using method setClusteringEnabled. I also faced same issue, this method is not supported in current mapbox sdk. I am using 4.0.
Try this Mapbox plugin. This lib has DefaultClusterRenderer.java class, you need to use it or implement ClusterRenderer.java interface, for drawing your own icons
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
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.
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 have a lot of points to show on Google Maps Android. I decided to draw them on the map by drawing circles with small radiuses. However, I noticed that drawing a lot of circles (around 1000) is very slow and the app does not respond well, even when the drawing is made in an AsyncTask.
Any ideas how to get around this?
The best way is to only plot what you can see on the map and when the map moves get the new points you can see so that you eventually dont have to plot anymore.
You can also look into clustering where if you have a bunch of markers in a certain area you can indicate a group of markers by just plotting one marker
this link goes over the different method you can use
https://developers.google.com/maps/articles/toomanymarkers
Consider using Markers instead and one of the clustering libraries freely available:
Android Maps Extensions
Clusterkraf
Android Maps Utils
If you are convinced you want to use Circles, you may try to use one of the libs and modify code to group Circles.