Home › Forums › MapPress Support › Adding an ID to the map wraper. › Reply To: Adding an ID to the map wraper.
May 4, 2026 at 8:43 pm
#22060
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.
