Template:Zh OpenStreetMap Predefined: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
When I start this extension I found '''omnivore''' library, which process file and you get correct layer and you can display it on map. | When I start this extension I found '''omnivore''' library, which process file and you get correct layer and you can display it on map. | ||
I used it to create paths, | I used it to create paths, but I decided to have control of some properties from component. | ||
Ie you can set color, hover color, width and etc properties for your KML or GPX data from Path properties. You have flexible appearance control. | Ie you can set color, hover color, width and etc properties for your KML or GPX data from Path properties. You have flexible appearance control. |
Latest revision as of 13:23, 3 October 2019
Description Predefined Types
In Paths properties Layer type is
- KML
- GPX
When I start this extension I found omnivore library, which process file and you get correct layer and you can display it on map.
I used it to create paths, but I decided to have control of some properties from component.
Ie you can set color, hover color, width and etc properties for your KML or GPX data from Path properties. You have flexible appearance control.
Layer popup content is Name property in file
Path properties
The next Path properties can apply to layer
- Color
- Opacity
- Weight
- Fill Color
- Fill Opacity
- Hover Color
- Hover Fill Color
- Layer Show Type - if set to Zoom you get fit map bounds to display layer on max zoom
- Suppress Popup
Map properties
The next Map properties can apply to layer
- Disable AutoPan