[mapguide-users] react-layout: Embedding the viewer is not working without resourceId in URL

Matze schramm at kom21.de
Tue Feb 28 03:02:34 PST 2017


Hi,
I'm testing the react layout (v0.8 - Ajax Viewer). When I use the layout
with the weblayout-resourceId in the URL, it works fine. 
As described in the  Developer Guide
<https://github.com/jumpinjackie/mapguide-react-layout/blob/master/DEVELOPING.md> 
, there is a way to set the resourceID within the mount function. 

viewer.mount(el, {
                layout: "ajax-viewer",               //The layout to use
                agent: {
                    uri: "../mapagent/mapagent.fcgi" //The mapagent url
                },
                resourceId: "Library://Path/To/Your.WebLayout"
            });

But this isn't working for me.

"An error occurred during startup
No resource parameter found. This viewer requires this parameter to be set
in the query string and must refer to a valid Web Layout or Application
Definition"

Is it still supported?




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/react-layout-Embedding-the-viewer-is-not-working-without-resourceId-in-URL-tp5309876.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list