ArcMap C# drawing polylines in selected layer – www.scriptscoop.net

This is function to draw polylines. But I want that polylines will be automatically storing in 'Lines' layer, that is possible ? If you want your layer to be a featurelayer rather than a graphics layer, then create a featureclass in a workspace, and add your line object to it like this (sorry it's in vb.net): To compare two latlngs use L.LatLng.equals: https://github.com/Leaflet/Leaflet/blob/master/src/geo/LatLng.js#L24. To get latlngs from polyline use L.Polyline.getLatLngs: https://github.com/Leaflet/Leaflet/blob/master/src/layer/vector/Polyline.js#L34. Now you can get your point in polyline and remove it using L.Polyline.spliceLatLngs: https://github.com/Leaflet/Leaflet/blob/master/src/layer/vector/Polyline.js#L48 or add using L.Polyline.addLatLng: https://github.com/Leaflet/Leaflet/blob/master/src/layer/vector/Polyline.js#L43 or set using L.Polyline.setLatLngs: https://github.com/Leaflet/Leaflet/blob/master/src/layer/vector/Polyline.js#L38. If you have the url for the map service, you can open the rest endpoint for the service in a web browser and view the layers in the map service. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 23, 2016 @ 9:01 pm