Adding an ID to the map wraper.

Home Forums MapPress Support Adding an ID to the map wraper.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22048
    katen
    Participant

      Hi,

      I want to add an id – simply #seemap – to the map wrapper.

      It will be used solely to link directly to a map on a given page from other pages.

      Is this possible?

      #22060
      Chris
      Keymaster

        Hi,

        By default the map web component has a “name” attribute where the name is either:

        • A name you specify using the shortcode, for example: [mappress name="myname" mapid="1234"]
        • If no name is assigned, then the plugin will use “mapp0” for the first map on the page, “mapp1” for the second, and so on.

        So for example, the first map is [mappress-map name="mapp0"]

        I think HTML spec for anchors allows you to refer to either an id or a name for a link.  So you could just use <a name="mapp0">.

        For the next plugin release, I’ll also add “id” to the web component to make this clearer.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.