AnsweredAssumed Answered

Performance issue with thousands of markers

Question asked by akshay_exfo on Feb 25, 2015
Latest reply on Feb 25, 2015 by Ahmed.ElSisiesrinea-esridist



I have a performance issue creating 1000 markers on ArcGIS map.

Below is a demo code snippet.


geo_map = new esri.Map(Ext.getCmp('geo_map'), {
  basemap: "topo",
  center: [-96, 37],
  zoom: 4

geo_map.on("load", function() {
   GetMarkers(me, geo_map, config_settings, map_data, test_status);


function GetMarkers(obj, map, config_settings, map_data, test_status){
   Ext.Object.each(, function(marker_data){
   var lng = marker_data.lng;
   var lat =;
   var marker_icon = "|C0C0C0|";
   var marker= new esri.layers.GraphicsLayer();
   var p = new esri.geometry.Point(lng, lat);
   var s = new esri.symbol.PictureMarkerSymbol(marker_icon, 51, 51);
   var g = new esri.Graphic(p, s);//console.log(marker);


This is just a sample code. I get stop script error on all browser. The same code works fine for Google maps with 10000 markers. Is there any alternate way of creating markers in ArcGIS to improvise?