How to query out multiple points from a single feature layer and display them?

I have a query that goes through and grabs the feature that is selected in a drop down. the problem I'm having is that it is only grabbing a single point. How do I get it to grab and display all points with the same name?

  function getParkFeature(in_park_name) {        var symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10,       new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,       new Color([255, 0, 0]), 1),       new Color([0, 255, 0, 0.25]));          var query = new Query();         query.where = "COMMON='" + in_park_name + "'";         query.outFields = ["COMMON","BOTANICAL", "CONDITION"];         tree.queryFeatures(query, function (featureSet) {             console.log(featureSet);             selectedParkFeature = featureSet.features[0];             selectedParkDisplayName = in_park_name;             var graphic = selectedParkFeature;             graphic.setSymbol(symbol);             graphic.setInfoTemplate(treesInfoTemplate)             map.graphics.add(graphic);              var graphicsExtent = esri.graphicsExtent(map.graphics.graphics)             if (graphicsExtent !== null) {                 map.setExtent(graphicsExtent);                 map.setExtent(graphicsExtent.expand(3))             }         });      } 

Replay

Category: arcgis javascript api Time: 2016-07-30 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 2.873 (s). 13 q(s)