Template:Zh OpenStreetMap Internal: Difference between revisions

From Documentation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
== Description Predefined Types ==
== Description Internal Parser Types ==


In Paths properties '''Layer type''' is
In Paths properties '''Layer type''' is
Line 20: Line 20:
*''Style'' - style definition  
*''Style'' - style definition  
** IconStyle
** IconStyle
*** Icon
**** href
**** scale
** LineStyle
** LineStyle
*** color
*** width
** PolyStyle
** PolyStyle
*** color
*** outline
*** fill




*''StyleMap'' - styles (normal, highlight) - hovering case
*''StyleMap'' - styles (normal, highlight) - hovering case
** Pair
*** key
*** styleUrl




*''Placemark'' - objects
*''Placemark'' - objects
** Point - placemarks
** Point - placemarks
*** coordinates
** MultiGeometry
** MultiGeometry
*** LineString - polylines
*** LineString - polylines
*** coordinates
*** Polygon - polygons
*** Polygon - polygons
**** outerBoundaryIs
**** innerBoundaryIs
***** LinearRing
****** coordinates
*** LineString - polylines
*** coordinates
** Polygon - polygons
** Polygon - polygons
*** outerBoundaryIs
*** innerBoundaryIs
**** LinearRing
***** coordinates
*** MultiTrack
*** MultiTrack
*** gx:Track - polylines
*** gx:Track - polylines
**** gx:coor
** gx:Track - polylines
** gx:Track - polylines
 
*** gx:coor


''Folder''
''Folder''
Line 60: Line 85:


* ''Layer Show Type'' - if set to '''Zoom''' you get fit map bounds to display layer on max zoom
* ''Layer Show Type'' - if set to '''Zoom''' you get fit map bounds to display layer on max zoom
* ''Suppress Popup'' - suppress all popups, if you want to have fine control of popups set it to ''No'' and use the next properties

Revision as of 12:55, 3 October 2019

Description Internal Parser Types

In Paths properties Layer type is

  • KML (Internal Parser)
  • GPX (Internal Parser)


By user requests I decided to create my own file parser.

For example, your file can contain not only one line with different colors (or other properties), and you want to use internal settings from file.

Moreover, when I have all data parsed, I can control and add different features. For exmple, you can use placemark clusterization for placemarks (Points or Waypoints) from file.


Now processed next tags

KML file

  • Style - style definition
    • IconStyle
      • Icon
        • href
        • scale
    • LineStyle
      • color
      • width
    • PolyStyle
      • color
      • outline
      • fill


  • StyleMap - styles (normal, highlight) - hovering case
    • Pair
      • key
      • styleUrl


  • Placemark - objects
    • Point - placemarks
      • coordinates
    • MultiGeometry
      • LineString - polylines
      • coordinates
      • Polygon - polygons
        • outerBoundaryIs
        • innerBoundaryIs
          • LinearRing
            • coordinates
      • LineString - polylines
      • coordinates
    • Polygon - polygons
      • outerBoundaryIs
      • innerBoundaryIs
        • LinearRing
          • coordinates
      • MultiTrack
      • gx:Track - polylines
        • gx:coor
    • gx:Track - polylines
      • gx:coor

Folder


Document


GPX file

  • trk - track definition
    • extensions
      • gpxx:TrackExtension
        • gpxx:DisplayColor - color
    • trkseg - track segments
      • trkpt - track point
  • wpt - waypoint definition


Path properties

The next Path properties can apply to layer

  • Layer Show Type - if set to Zoom you get fit map bounds to display layer on max zoom
  • Suppress Popup - suppress all popups, if you want to have fine control of popups set it to No and use the next properties