Hi
I am working in SaaS.
I would like a Map to show the Closest route between:
- a start point stored in a variable (or a file) and
- a set known of points (eg. Airports).
- ie. if the location in the variable changes, the Closest route should be shown on the next map update.
Based on Patric's examples the expression below works dynamically for all Routes, but not for the Closest route.
=GeoOperations.ScriptEvalStr('Select LowResLine from Routes(originField="Start", destField="AirportPt",transportation="$(vMode)")',
'$(vMyPoint)' as Start, AirportPt)
QUESTION:
Can the Closest route be dynamically calculated in the Map Object Location expression, or must it be calculated in the Load Script?