[mapguide-users] React layout warning: Could not find the context menu configuration
pierre.cardinal at sympatico.ca
pierre.cardinal at sympatico.ca
Thu Sep 15 06:21:31 PDT 2022
Hi Kajar,
In your ApplicationDefiniton resource, do you have a Container with the name MapContextMenu ?
<Container xsi:type="UiItemContainerType">
<Name>MapContextMenu</Name>
<Type>ContextMenu</Type>
<Position>top</Position>
<Extension />
<Item xsi:type="WidgetItemType"> etc
(look at the attached file)
The warning is displayed when the Container is missing from the resource. In Maestro you can edit the resource by opening your Flexible Layout and click on the menu [Edit as XML] at the top.
Regards,
Pierre
De : mapguide-users <mapguide-users-bounces at lists.osgeo.org> De la part de Kajar Kuldsepp
Envoyé : 15 septembre 2022 04:38
À : mapguide-users at lists.osgeo.org
Objet : [mapguide-users] React layout warning: Could not find the context menu configuration
Hi!
I'm experience warning when using React layout. It happens when I start using latest 0.14.7 version.
During load I will get warning:
The following warnings were encountered loading the viewer
* Could not find the context menu configuration. Right-clicking the map will show an empty context menu. If you are loading from a Flexible Layout, it must have a container named 'MapContextMenu'
It happens all flexible layouts I have created and also all react templates.
I also did one test and created layout without MaprightclickMenu widget, but still same warning on load. Does anyone else have experienced same problem and how to get rid of it?
Kajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20220915/f2f9034f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resource.xml
Type: text/xml
Size: 42320 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20220915/f2f9034f/attachment.xml>
More information about the mapguide-users
mailing list