Hey team,
I am working on a Map Add-In page that will not utilize the right side panel but will strictly use the actions when clicking on a Device on the map (based on the example here).
Instead of opening the right side panel with some content based on the selected action, I would like to open a modal in the center of the page. I attempted to retrieve the document object for the Map page by doing a
const documentObject = elt.ownerDocument;But this will only retrieve the iframe:
{
"location": {
"ancestorOrigins": {
"0": "https://my.geotab.com"
},
"href": "https://my.geotab.com/test/geotab/checkmate/maps/addins/frame/page/iframe.html",
"origin": "https://my.geotab.com",
"protocol": "https:",
"host": "my.geotab.com",
"hostname": "my.geotab.com",
"port": "",
"pathname": "/test/geotab/checkmate/maps/addins/frame/page/iframe.html",
"search": "",
"hash": ""
}
}Any suggestions on how I can programmatically create a modal (dialog) for the Map page?
Thanks!