Created
September 21, 2019 08:24
-
-
Save adamdriscoll/56ccbca1e6c436f99a8fc395003206dc to your computer and use it in GitHub Desktop.
Renders a map based on GPX files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-UDMap -Endpoint { | |
New-UDMapLayerControl -Id 'layercontrol' -Content { | |
New-UDMapBaseLayer -Name "Mapnik" -Content { | |
New-UDMapRasterLayer -TileServer 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' | |
} -Checked | |
New-UDMapOverlay -Name "Day 1" -Content { | |
New-UDMapVectorLayer -Polyline -Positions $Cache:Day1 -Color Red | |
} | |
New-UDMapOverlay -Name "Day 2" -Content { | |
New-UDMapVectorLayer -Polyline -Positions $Cache:Day2 -Color Green | |
} | |
New-UDMapOverlay -Name "Day 3" -Content { | |
New-UDMapVectorLayer -Polyline -Positions $Cache:Day3 -Color Blue | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment