Potlatch 2/Developer Documentation/Layering

From OpenStreetMap Wiki
Jump to: navigation, search

Each data layer (whether a vector background layer or the main map) has a MapPaint object. Its children are as follows

  • Rendering layer -5 (equivalent to OSM layer=-5)
    • Fill paint sprite (child 0)
    • Casing paint sprite (child 1)
    • Stroke paint sprite (child 2)
      • Sublayer sprites (added as required)
    • Names paint sprite (child 3)
  • Rendering layer -4 as above
  • and so on up to...
  • Rendering layer +5
  • Interaction layer -5
    • Way hit test (child 0)
    • Node hit test (child 1)
  • Interaction layer -4
  • and so on up to...
  • Interaction layer +5