DeepZoom scripting
    Preparing search index...

    Function markerCreate

    • Create a new private marker at the given coordinates, or at the map center if no coordinates are given. When coordinates are given, the map is moved to center on the marker.

      Built in icons are anchorage, coastpilot, fishing, dzfuel, dzinfo, kayak, marina, pin, SCUBA, SOS, surfing, dzswimming, treasure, webcam, windsurfing.

      Parameters

      • json: { coords: number[]; icon: string; id: string; name: string } = ...
        • coords: number[]

          array: [longitude, latitude] (optional, defaults to the map center)

        • icon: string

          string: A built in icon name, or the URL of an image (optional)

        • id: string

          string: The id to give the new marker

        • name: string

          string: The visible name of the marker (optional)

      Returns void

      id

      {
      "id": "marker 1",
      "coords": [-122.75, 48.12],
      "icon": "anchorage",
      "name": "Port Townsend anchorage"
      }