I want to add more than one layer to snapping in map
var layerInfos = [
{layer:results[0].layer}
];
snappingManager.setLayerInfos(layerInfos);
-
Welcome to GIS SE! As a new user be sure to take the Tour to learn how this site works. What GIS software are you using here?PolyGeo– PolyGeo ♦2015年12月05日 09:00:47 +00:00Commented Dec 5, 2015 at 9:00
-
thanks for your advice i am building a gis application using arcgis javascript apiHassan– Hassan2015年12月05日 09:22:52 +00:00Commented Dec 5, 2015 at 9:22
1 Answer 1
var snapToTheseLayers = [
{layer: layer1},
{layer: layer2}, ...//add as many layers as you want
];
snappingManager.setLayerInfos(snapToTheseLayers );
-
Please edit provide context for your answer.MaryBeth– MaryBeth2016年01月26日 14:16:05 +00:00Commented Jan 26, 2016 at 14:16
-
Explore related questions
See similar questions with these tags.
lang-js