How to cluster polylines? - android-maps-extensions

I have been trying this great library for a month now. It allows me to have more than 5000 markers on the map so far. The problem is that I have to draw polylines betweens these locations. Please does anyone has an example on how to cluster polylines? When I don't draw the polylines, the zoom (and the map) is smooth, but as soon as I draw polylines it becomes slow.
Please mg6maciej (the author of the library), do you have any Demo on how to cluster polylines?
Thanks in advance

Related

Markers and Clusters are flashed/redraw when zoom is changing [googlemaps/js-markerclusterer]

I reviewed this example http://jsfiddle.net/geocodezip/f5baj1uq/:
it uses https://cdnjs.cloudflare.com/ajax/libs/markerclustererplus/2.1.4/markerclusterer.js
I love it because I zoom markers and clusters and them are not redrawn.
MarkerCluster-Ok.webm
But checking the last version https://googlemaps.github.io/js-markerclusterer/public/defaults/ I see that all markers and clusters are drawn for example in each zoom changing giving a bad user experience because unnecessary markers and clusters are drawing again.
MarkerCluster-Ko.webm
Is there an option in the last version to avoid flash/redraw effect in markers and clusters?
Thanks for your response.

Creating a 100 sqkm KML in Google Earth

I am trying to create a 100 sqkm (10 km by 10 km) KML square polygon with a point of interest centred right in the middle.
How do I do this?
Thank you.
Xu
handling polygons in google earth are rather tricky but also there is a lot of thing you can do with that. here's a sample of rather a mature example of a polygon kml file in google earth (it is a ship with very details) and also three link of tutorials that i have watched to creats polygons :
http://www.lynda.com/SketchUp-tutorials/SketchUp-6-Essential-Training/612-2.html?srchtrk=index:1%0Alinktypeid:2%0Aq:google%2Bearth%2Bpolygon%0Apage:1%0As:relevance%0Asa:true%0Aproducttypeid:2
http://www.lynda.com/ArcGIS-tutorials/Making-lines-polygons-Google-Earth/162136/186933-4.html
http://www.lynda.com/SketchUp-tutorials/Exporting-models-Google-Earth/612/41758-4.html
and also the kml file :
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiYy-n0k5zKAhVJ1hQKHbqJAVIQFggcMAA&url=http%3A%2F%2Fwww.gearthblog.com%2Fblog%2Farchives%2F2012%2F01%2F18%2FCosta%2520Concordia%2520on%2520the%2520rocks.kmz&usg=AFQjCNEhyEKuyKTF5oGds_OAVH3LgqPHpg&sig2=G_sIJeUBosCMZimbirndoQ

Google Map API - polygon cutted off from another polygon

I'd like to draw polygon into the Google Map API and cut another polygon which lies inside the first one off. Is this possible? Could you give me any example, please (maybe link to the page with working example)?
Thank you very much.

FusionTables layer above polygon

On my website: http://mapa.polskieszlaki.pl/ I'm using FusionTables for displaying markers (over 5000 of them). I've got also GroundLayer with regions (pink ones). But I wanted to change them to polygon (less loading) and have one problem.
FusionTable layer is below polygon and I want it to be above (markers are most important).
Is there a way to do it?
Put the polygon in a FusionTableLayer, load that first, then load the FusionTablesLayer with the markers.

Can I temporarily disable rendering of markers in Google Maps V3?

I have a map where at some point I draw around 14000 markers. If the bounds of the map is set to the entire area where the markers are drawn, it takes a long time to draw the markers (about 8 seconds). But if I zoom into an area where few/no markers will be drawn, then drawing the 14000 markers goes really fast, like 2-3 seconds.
I assume this is because the most time consuming process is to actually draw the marker icons to the tiles, and since the markers are added one at a time, the map is rendered a ton of times in a very short time span.
Therefore I wonder if it's possible to disable the map updating/rendering while I add my icons, then re-enable it when all the icons are added.
Any solutions with the similar effect is welcome
The rendering time goes down because api v3 doesn't add the 14 000 when you're zoomed in more tightly. It only adds the markers that are in the current bounds PLUS markers that are in the tile layer buffer around the edges (probably one or two tiles).
I'm kind of confused as to what you mean, but perhaps you want to add the markers only after the map has already been loaded:
google.maps.event.addListenerOnce(map,'tilesloaded',addMarkersFunction);
All that being said, 14 000 markers is A LOT of markers. Clustering markers when you have this many is not even what I would consider optional any more.
Yes, you could create a lot of markers, not associate them with the map. Then afterwards, call the setMap() function on each of them.
You could also only do this that fall within the current bounds.
And have you considered marker clustering to reduce the number of markers?
Would be useful to see your code.
Try using the MarkerManager library in the Google Maps API v3 Utility Library. It was designed for such problems. While there isn't much in the way of documentation, there are several useful examples and plenty of comments in the source code.