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:
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
Post a Comment