DeepZoom scripting
    Preparing search index...

    Function selectMarker

    • Select a private or public marker, buoy, or wikipedia entry. On large displays (two column layout), the marker will be shown on the Markers tab if a private marker or on the Info tab, if a public marker. For single column displays (phones, generally), the tab is displayed only if the "showIfMobile" option is true.

      Public markers, buoys, and wikipedia entries are selected by their internal id. The easiest way to get it is to select the marker in DeepZoom before adding this event in the script dialog. Private markers can also be selected by visible name or regular expression, see id.

      Parameters

      • json: {
            markerId: string;
            markerName: string;
            markerType: string;
            move: boolean;
            showIfMobile: boolean;
        } = ...
        • markerId: string

          string: The id of the marker. For private markers, this can also be the visible name or a regular expression.

        • markerName: string

          string: The title shown for wikipedia entries, otherwise unused (optional)

        • markerType: string

          string: "marker" (public marker) | "pmarker" (private marker) | "buoy" | "wikipedia"

        • move: boolean

          boolean: If true, position the marker at the center of the map (optional)

        • showIfMobile: boolean

          boolean: Show the marker on single column displays (generally phones) (optional)

      Returns void

      id

      // a public marker
      { "markerId": "GNIS1509666",
      "markerType": "marker",
      "move": true,
      "showIfMobile": false
      }

      // a private marker in this trip, by visible name
      { "markerId": "marker 1",
      "markerType": "pmarker",
      "move": true
      }