I've been working on customizing a popup and just have a quick question. I've adjusted the widths and breakpoints as required, and don't want it to dock. I feel like this one is fairly easy, and I'm just missing something small.
My current code for that portion is:
const view = new MapView({
container: "viewDiv",
map: map,
zoom: 10,
center: [-80.899567, 44.434577],
popup: {
dockEnabled: false,
dockOptions:{buttonEnabled: false}
};
});
I figured turning the "dockEnabled" to false would do it, but apparently not. Am I missing something?
Thanks in advance.
Solved! Go to Solution.
Shawn,
No there is no dockEnabled property on the dockOptions object. What you have to set to prevent docking is the breakpoint false.
Set to false to disable docking at a breakpoint.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions
Shawn,
No there is no dockEnabled property on the dockOptions object. What you have to set to prevent docking is the breakpoint false.
Set to false to disable docking at a breakpoint.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions