prolem with get the measurement graphics

2185
2
Jump to solution
11-01-2015 11:44 PM
lasinh
by
New Contributor III

hii All!! I used measurement to  draw polygon and polyline geometry on the map; and after  I want to get the measurement graphics; how to get the measurement graphics? thank you

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

La sigh,

  Listen for the measure-end event and get the geometry

  measurement.on("measure-end", function(evt){
    map.graphics.add(new Graphic(evt.geometry));
  });

Measurement | API Reference | ArcGIS API for JavaScript | measure-end

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

La sigh,

  Listen for the measure-end event and get the geometry

  measurement.on("measure-end", function(evt){
    map.graphics.add(new Graphic(evt.geometry));
  });

Measurement | API Reference | ArcGIS API for JavaScript | measure-end

0 Kudos
lasinh
by
New Contributor III

Thank you so much!!

0 Kudos