Skip to content

Instantly share code, notes, and snippets.

@benheb
Created April 17, 2013 22:12
Show Gist options
  • Select an option

  • Save benheb/5408189 to your computer and use it in GitHub Desktop.

Select an option

Save benheb/5408189 to your computer and use it in GitHub Desktop.
var featuresUrl = "http://ec2-54-224-131-33.compute-1.amazonaws.com:6080/arcgis/rest/services/PhillyCrime/MapServer/0";
this.layer = new esri.layers.FeatureLayer(featuresUrl, {
"id": "crimeLayer",
"mode": esri.layers.FeatureLayer.MODE_SNAPSHOT,
"outFields": ["UCRHundred", "STOLEN_VALUE", "RECOVERED_VALUE", "LOCATION", "STATUS", "MODUS_OPERANDI"]
});
this.layer.maxRecordCount = 10;
console.log('INIT LAYER: ', this.layer)
this.map.addLayer( this.layer );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment