markerclusterer - Marker Clusterer in DevExtreme Mobile -


i'm developing application in devextreme mobile. in application, use dxmap in application. how can use marker clusterer structure in devextreme mobile app?

you can use google maps marker clusterer api create , manage per-zoom-level clusters large number of devextreme dxmap markers. here example:

 dxmap marker clusterer

this example based on approach described in google too many markers! article

here sample code:

$("#dxmap").dxmap({     zoom: 3,     width: "100%",     height: 800,     onready: function (s) {         var map = s.originalmap;          var markers = [];         (var = 0; < 100; i++) {             var dataphoto = data.photos[i];             var latlng = new google.maps.latlng(dataphoto.latitude, dataphoto.longitude);             var marker = new google.maps.marker({                 position: latlng             });             markers.push(marker);         }         var markercluster = new markerclusterer(map, markers);     } }); 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -