Template:Zh OpenStreetMap Predefined: Difference between revisions

From Documentation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
This section describes using KML and GPX files.
In Paths properties '''Layer type''' is


In extension used two types file parsers.
* KML
* GPX


The first is '''leaflet-omnivore''' third party library.
When I start this extension I found '''omnivore''' library, which process file and you get correct layer and you can display it on map.


The second is written by myself file parser.
I used it to create paths, but I decided to have control of some properties from component.


Lets check the difference and cases when you use it.
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.

Revision as of 12:07, 3 October 2019

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.