Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-21 Thread Rémy Gourrat
Ok.

it's more clear now and I have a workaround !

Thanks 
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-21 Thread Jackie Ng
See explanation here:
https://github.com/jumpinjackie/mapguide-react-layout/issues/130

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-react-js-embeded-in-div-or-iframe-issue-tp5308462p5308841.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-21 Thread Rémy Gourrat
At loading of mapguide viewer react in the iframe, i see in console network 
that pageLoadFunctions.js is loaded with success

In the code I see the call to read the mapinit property wich failed :   

if (parent.parent.mapFrame.mapInit)
  return;

I don't understand why only it's failing for React.js viewer in iframe : the 
parent.parent.mapFrame.mapInit is a relative path !

And It's running with success if React.js viewer is on the top.

Have you an explication ?

Rémy
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-20 Thread Jackie Ng
Is pageLoadFunctions.js loaded by the Task Pane content? That file name
sounds familiar.

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-react-js-embeded-in-div-or-iframe-issue-tp5308462p5308744.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-20 Thread Rémy Gourrat
Hi thanks for your answered,

My goal is to have a simple mapguide window (iframe) in my specific data 
collector application (my application is on top document) and just click button 
to get the x,y of the digitized point in the mapguide viewer.

i geted a solution with a mapguide iframe, I can digitize and get point x,y, 
it's works fine.

Curiously, the error message at loading about MapInit, for my moment usage 
seems not to be a problem for DigitizePoint..

My html page with mapguide in an iframe, if you want test : 

consol.log return :

VM170 pageLoadFunctions.js:25 Uncaught TypeError: Cannot read property 
'mapInit' of undefined
at window.onload (VM170 pageLoadFunctions.js:25)
window.onload @ VM170 pageLoadFunctions.js:25






function digitize_point_from_iframe()
{

document.getElementById("mapguide_iframe_react").contentWindow.GetMapFrame().DigitizePoint(OnPointDigitized);
}

function OnPointDigitized(point) 
{
  document.getElementById("ag_x").value = point.X;
  document.getElementById("ag_y").value = point.Y;
}   












Thanks for your help.

Rémy
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-20 Thread Jackie Ng
I haven't tested mapguide-react-layout in frame embedding scenarios. The
viewer is assumed to be mounted on the top-level content window.

What is your particular frame layout? Especially the relation between the
frame containing your viewer and the frame containing your error-ing
content?

- Jackie



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-react-js-embeded-in-div-or-iframe-issue-tp5308462p5308565.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] mapguide react.js embeded in div or iframe issue

2017-02-18 Thread Rémy Gourrat
Hi Jackie,

I work on an application which embed your mapguide react.js viewer. Beautiful 
work !

I try to use the viewer in a div or in iframe, and base functions work fine.

But when mapguide is loaded in iframe or div I have this message in the console 
:

VM142 pageLoadFunctions.js:25 Uncaught TypeError: Cannot read property 
'mapInit' of undefined at window.onload (VM142 pageLoadFunctions.js:25)

And when I want to use the digitize point function in 
"task_pane_digitizing.aspx"

I have this message :
task_pane_digitizing.aspx?SESSION=34b59d8e-f606-11e6-8000-501376d6fc7f_en_MTI3LjAuMC4x0AFC0AFB0AFA&...:30
 Uncaught TypeError: Cannot read property 'DigitizePoint' of undefined
at DigitizePoint 
(task_pane_digitizing.aspx?SESSION=34b59d8e-f606-11e6-8000-501376d6fc7f_en_MTI3LjAuMC4x0AFC0AFB0AFA&...:30)
at HTMLInputElement.onclick 
(task_pane_digitizing.aspx?SESSION=34b59d8e-f606-11e6-8000-501376d6fc7f_en_MTI3LjAuMC4x0AFC0AFB0AFA&...:96)

is it a way to correctly load mapguide react.js viewer in a div/iframe ?

is it necessary to edit codes ?

Thanks

Rémy




-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/mapguide-react-js-embeded-in-div-or-iframe-issue-tp5308462.html
Sent from the MapGuide Users mailing list archive at Nabble.com.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users