POST
|
var selectionToolbar; map.on("load", initSelectToolbar); var selectline = new SimpleLineSymbol(); selectline.setWidth(4); selectline.setColor(new Color([0,255,255, 1])); var selectlineSymbol = new SimpleFillSymbol(); selectlineSymbol.setOutline(selectline); selectlineSymbol.setColor(new Color([46,191,240, 0])); on(dom.byId("selectFieldsButton"), "click", function () { selectionToolbar.activate(Draw.EXTENT); }); on(dom.byId("clearSelectionButton"), "click", function () { JobStatusLyr.clearSelection(); map.graphics.clear(); }); function initSelectToolbar (event) { selectionToolbar = new Draw(event.map); var selectQuery = new Query(); on(selectionToolbar, "DrawEnd", function (geometry) { selectionToolbar.deactivate(); selectQuery.geometry = geometry; selectQuery.returnGeometry = true; selectQuery.where = "1=1"; JobStatusLyr.queryFeatures(selectQuery, function (featureSet) { array.forEach(featureSet, function (feature) { var Geom = feature.geometry; var gra = new Graphic(Geom, selectlineSymbol); map.graphics.add(gra); }); }); JobStatusLyr.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW); }); } });
... View more
10-11-2018
11:42 AM
|
0
|
0
|
1403
|
POST
|
init.js:89 g {message: "Timeout exceeded", response: {…}, status: undefined, responseText: undefined, xhr: XMLHttpRequest, …} also: Active resource loading counts reached to a per-frame limit while the tab is in background. Network requests will be delayed until a previous loading finishes, or the tab is foregrounded. See <URL> for more details
... View more
10-11-2018
11:22 AM
|
0
|
2
|
1403
|
POST
|
I incorporated this way. Cant get the graphics to show up. featurelayername.queryFeatures(selectQuery, function (featureSet) { array.forEach(featureSet, function (feature) { var Geom = feature.geometry; var gra = new Graphic(Geom, selectlineSymbol); map.graphics.add(gra); }); });
... View more
10-11-2018
09:51 AM
|
0
|
6
|
1403
|
POST
|
I am trying to select multiple polygon features and have a graphic drawn on top of the features to show selection with this code. Right now, the selection works and selects the features (I know this because it shows as selected in the featuretable). But the graphic only draws over a single feature. Is there a way to have it draw over multiple features? var selectionToolbar; map.on("load", initSelectToolbar); var selectline = new SimpleLineSymbol(); selectline.setWidth(4); selectline.setColor(new Color([0,255,255, 1])); var selectlineSymbol = new SimpleFillSymbol(); selectlineSymbol.setOutline(selectline); selectlineSymbol.setColor(new Color([46,191,240, 0])); on(dom.byId("selectFieldsButton"), "click", function () { selectionToolbar.activate(Draw.EXTENT); }); on(dom.byId("clearSelectionButton"), "click", function () { featurelayername.clearSelection(); map.graphics.clear(); }); function initSelectToolbar (event) { selectionToolbar = new Draw(event.map); var selectQuery = new Query(); on(selectionToolbar, "DrawEnd", function (geometry) { selectionToolbar.deactivate(); selectQuery.geometry = geometry; selectQuery.returnGeometry = true; selectQuery.where = "1=1"; featurelayername.queryFeatures(selectQuery, function (featureSet) { featurelayername.selectFeatures(selectQuery, FeatureLayer.SELECTION_NEW); var Geom = featureSet.features[0].geometry; var gra = new Graphic(Geom, selectlineSymbol); map.graphics.add(gra); }); }); }
... View more
10-11-2018
08:27 AM
|
0
|
8
|
1678
|
POST
|
Could you possibly tweek this for using in the 3.24 version? Is it possible? I am having trouble converting it over. the MapView function is not available in 3, and I am having trouble with the "view.then(function() {" part.
... View more
06-26-2018
11:28 AM
|
0
|
0
|
2462
|
Online Status |
Offline
|
Date Last Visited |
03-30-2023
10:09 PM
|