Tuesday, 13 February 2018

Is there an existing way to do linear referencing in ArcGIS JavaScript API 2.1?


First of all, let me specify that this is for the JavaScript API 2.1 or later only, not ADF/Google/Virtual Earth/Silverlight/Flex or any of the other extensions.


We've been creating geometry from a road geometry service to display travel routes on our map. We also have a layer of known routes. We're working on trying to speed things up by using the known routes in a JSAPI map, and calling the road geometry service only when we need to update or add routes.


Using the road geometry service, we can draw the route so that when a vehicle is shown on the route, the road already traveled can be red, and the remaining route as green. Has anybody tried to render lines with different symbols on different parts of the line?



Answer



If you have an ArcGIS Server Advanced License, you "should" be able to create a model in ArcGIS Desktop. Add the model to a Tool Layer and then publish it to a Map Service. This should allow you to use the Linear Referencing Toolbox in ArcGIS Desktop in your JavaScript Application. Is this a possible solution?


Have a great day, CDB


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...