LSPS documentation logo
LSPS Documentation
Map Display

The Map Display component renders as an OpenStreetMap with the defined center location, zoom, and optionally also markers. You can drag the map to change the visualized area and zoom it in and out. The map markers can be draggable.

It produces events of the following types:

Map Properties

  • Center: coordinates of the center of the rendered map
  • Zoom: default zoom on initialization and refresh defined as an integer with value 0-18 (0 being the lowest zoom with the entire Earth displayed)
  • Markers: set of business data that are used as map markers
    { 
      [new Meeting(
              title -> "Whitestein Meeting",
              location -> whitesteinHeadquarters,
              can_reschedule -> false,
              attendees -> ["Vladimir", "Estragon"]
              ] 
    }
    
  • To marker: expression that converts the business data from Markers to MapMarker objects
    { x:Meeting -> new ui::MapMarker
      (
        title -> x.title,
        location -> x.location,
        popup -> x.title + "<br/>Atendees: " + x.attendees,
        draggable -> x.can_reschedule
      )
    }