Is querytask able to return M in Javascript API?

880
3
02-21-2017 07:38 AM
MilesZhou1
New Contributor

I try to use querytask to get M from arcgis server, but it seems javascript api doesn't support returnM.  Does anyone know how to get M value using javascript api? Thanks,

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Miles,

   The JS API Geometry Object is not m aware and the Query class does not provide any returnM property like the REST API does. But if you do not use QueryTask and build your own REST Query url then you can add the returnM url parameter and once you have your URL and parameters built then you can use esriRequest to manually query the REST endpoint.

0 Kudos
MilesZhou1
New Contributor

Thanks Robert, 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Miles,

   Don't forget to mark this question as answered.

0 Kudos