[mapguide-users] react-layout: Hooking to events in the AJAX viewer (OnSelectionChanged)

2017-02-28 Thread Matze
Hi, is there a way in react-layout (v0.8 Ajax Viewer) to rebuild the OnSelectionChanged/onMapClick workaround like in the normal MapGuide Ajax Viewer? Thank you in advanced.

Re: [mapguide-users] react-layout: Hooking to events in the AJAX viewer (OnSelectionChanged)

2017-02-28 Thread Jackie Ng
There is no current hook to the outside (of react.js) world for map selection changes. It should be trivial for me to add such a hook as a mount() call option if that is what you're after. - Jackie -- View this message in context:

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

2017-02-28 Thread Matze
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 , there is a way to set the resourceID

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

2017-02-28 Thread Jackie Ng
This is a bug: https://github.com/jumpinjackie/mapguide-react-layout/issues/138 - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/react-layout-Embedding-the-viewer-is-not-working-without-resourceId-in-URL-tp5309876p5309888.html Sent from the MapGuide Users mailing

Re: [mapguide-users] react-layout: Hooking to events in the AJAX viewer (OnSelectionChanged)

2017-02-28 Thread Matze
If it is possible, yes. For what I need this: As soon as the user touches/clicks on the map and occurs a change/creation of a selection, the user will get a custum property info in the taskpane with more properties than in the mapguide propertypane. For this, I just need an event that the

Re: [mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls

2017-02-28 Thread BenSav
Jackie We are using AIMS 2015 at the moment. I'll post a code snippet of what we are trying to do tomorrow when at the office. Thx! [cid:image004.png@01CE52E4.A7D3CDA0] Ben Savelkoul 0494 64 63 73 | ben.savelk...@geosolutions.be GEO Solutions nv, Prins

Re: [mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls

2017-02-28 Thread BenSav
Benoit, Thanks for your comment. In fact we are creating the runtime maps server side sending an array of map definitions in the request as you suggest. Now to reduce the load a little bit, I am only doing this for the maps that are to be visible at startup of the application. When the user

Re: [mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls

2017-02-28 Thread Jackie Ng
If you ran CREATERUNTIMEMAP many times on the same map definition and same set of parameters, the only difference in the responses you get back are the session ids. Thus the caching opportunity is to save the rest of the XML response as a cached "template" and for subsequent requests of the same

Re: [mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls

2017-02-28 Thread BenSav
This is the function we are using to create the runtime map, it is called from a for-loop: private void CreateMap(string name, MgMappingService srv) { if (!string.IsNullOrEmpty(name)) { try { _log.Info("Trying to