New workflows for adding points in different formats (DDM, DD, DMS etc.) We've implemented a custom graphics layer which persists graphics in local storage - check it out here: gist.github.com/JonnyDawe/8d.... #arcgis #arcgisJS
Post
Nice! What are you using for the coordinate parsing/formatting? developers.arcgis.com/javascript/l...? And for the measurements, using the DistanceMeasurementViewModel or fully custom implementation?
Yep we use the coordinateFormatter to parse the text input into Points. Going the other way, we have some of our own simple formatting logic to convert the points back into the different formats we support. The measurements were heavily inspired by this article: www.esri.com/arcgis-blog/...
I think in a previous post I may have said we were using the measurements view model. But actually I've created a custom subclass of a sketch view model for the line measurements. It handles optimising when distances are calculated to ensure that only the new segment are being actively measured.
0 reposts1 like