Skip to main content
Version: 1.x (beta)

Points of Interest

Display and manage markers at geographic coordinates.

Overview​

A WemapCoreSDK/PointOfInterest shows an image at a geographic coordinate — typically a marker or pin the user can tap for more information.

  • Note: Adding custom POIs to the map is not available yet — only AR is supported for now.

Adding POIs in AR​

Create a POI with at least a name, a coordinate, and an imageURL:

let poi = PointOfInterest(
name: "Example POI",
coordinate: Coordinate(coordinate2D: .init(latitude: 43.610628, longitude: 3.876654)),
imageURL: "https://api.getwemap.com/images/pps-categories/icon_circle_maaap.png"
)

Add it to the AR scene through arView.pointOfInterestManager:

_ = arView.pointOfInterestManager.addPOI(poi)

Remove it later with:

_ = arView.pointOfInterestManager.removePOI(poi)
  • Important: Only remove POIs you added yourself. Many maps include POIs provided by the Wemap backend; attempting to remove those returns false — it isn't permitted.