Hi Jackie,

 

Finally, I found the answer, there is no problem with the KML operations. The 
mapagent.fcgi file is the KML file (confusing when you see the proposed name 
for the KML file)

 

Regards,

 

Pierre

 

 

De : mapguide-users <mapguide-users-boun...@lists.osgeo.org> De la part de 
pierre.cardi...@sympatico.ca
Envoyé : 26 août 2022 16:59
À : 'MapGuide Users Mail List' <mapguide-users@lists.osgeo.org>; 'Jackie Ng' 
<jumpinjac...@gmail.com>
Objet : Re: [mapguide-users] REACT Sample

 

* Also the GETLAYERKML and GETLAYERKML operations seam problematic.

 

 

Also the GETLAYERKML and GETFEATURESKML operations seam problematic.

 

 

 

 

De : mapguide-users <mapguide-users-boun...@lists.osgeo.org 
<mailto:mapguide-users-boun...@lists.osgeo.org> > De la part de 
pierre.cardi...@sympatico.ca <mailto:pierre.cardi...@sympatico.ca> 
Envoyé : 26 août 2022 16:56
À : 'MapGuide Users Mail List' <mapguide-users@lists.osgeo.org 
<mailto:mapguide-users@lists.osgeo.org> >; 'Jackie Ng' <jumpinjac...@gmail.com 
<mailto:jumpinjac...@gmail.com> >
Objet : Re: [mapguide-users] REACT Sample

 

Hi Jackie,

 

The cause of the problem is with the operation GETMAPKML.

 

Request sent by MapAgent

http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPKML 
<http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPKML&VERSION=1.0.0&CLIENTAGENT=MapGuide+Developer&FORMAT=KML&DPI=96&MAPDEFINITION=Library%3A%2F%2FSamples%2FSheboygan%2FMaps%2FSheboygan.MapDefinition>
 
&VERSION=1.0.0&CLIENTAGENT=MapGuide+Developer&FORMAT=KML&DPI=96&MAPDEFINITION=Library%3A%2F%2FSamples%2FSheboygan%2FMaps%2FSheboygan.MapDefinition

 

or

 

Request sent by application Sample

http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous 
<http://localhost/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition>
 
&OPERATION=GetMapKml&VERSION=1.0.0&MAPDEFINITION=Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition

 

 

With MGOS 3.1.2, MGOS build 9862 (4P3) and MGOS 4P4, it is impossible to use 
the operation GETMAPKML. I did some tests with the MapAgent Test Pages and I 
always have the same result. The operation returns a pop up window to download 
the file mapagent.fcgi (except for XML format).

 

 

 



 

 

Also the GETLAYERKML and GETLAYERKML operations seam problematic.

 

 

 

Pierre

 

 

De : mapguide-users <mapguide-users-boun...@lists.osgeo.org 
<mailto:mapguide-users-boun...@lists.osgeo.org> > De la part de pierre.cardinal 
pierre.cardinal
Envoyé : 25 août 2022 12:20
À : Jackie Ng <jumpinjac...@gmail.com <mailto:jumpinjac...@gmail.com> >; 
mapguide-users@lists.osgeo.org <mailto:mapguide-users@lists.osgeo.org> 
Objet : [mapguide-users] Ré: Re: REACT Sample

 

 

Hi Jackie,

 

Thank you for your prompt answer

 

For cases 2 and 3 (MGOS 4.0 P3 and IIS under Server 2012 R2, MGOS 4.0 P4 and 
IIS under Win10)

I was already using the "resource" parameter.

 

For case 1 (MGOS (build 9862) and IIS under Win10)

I changed the parameter "ApplicationDefinition" for "resource", now I have the 
same result as in the two other cases. When I click on « View as KML », the 
function returns a pop up window to download the file mapagent.fcgi.

 

 

Pierre

 

 

 



------ Message d’origine ------
De: jumpinjac...@gmail.com <mailto:jumpinjac...@gmail.com> 
À: mapguide-users@lists.osgeo.org <mailto:mapguide-users@lists.osgeo.org> 
Envoyé: jeudi 25 août 2022 09:09
Objet: Re: [mapguide-users] REACT Sample

Use "resource" instead of "ApplicationDefinition" as the query string parameter.

 

- Jackie

 

You wrote:

With MGOS (build 9862) and IIS under Win10.
I  have no problem to display the REACT viewer when I am using the viewer 
directory (ziewer.zip or  yarn install from the source) .
But when I am trying to display the REACT viewer with the sample directory, 
http://localhost/mapguide/sample/sample_template.html?ApplicationDefinition=Library://Samples/Sheboygan/FlexibleLayouts/React.ApplicationDefinition
 
<http://localhost/mapguide/sample/sample_template.html?ApplicationDefinition=Library://Samples/Sheboygan/FlexibleLayouts/React.ApplicationDefinition&locale=en>
 &locale=en
Note : I have a React flexible layout (react.xml) in FlexibleLayouts of the 
Sheboygan package 
I have the following message :
An error occurred during startup
No resource parameter found. This viewer assumes this parameter to be set in 
the query string and must refer to a valid Web Layout or Application 
Definition. If not specified, it will try to init from a Application Definition 
document at appdef.json
With MGOS 4.0 P3 and IIS under Server 2012 R2
Also I have no problem with the viewer directory but, when I am trying to 
display the REACT viewer with the  sample directory, mostly everything is OK 
except  the « View as KML »  function. When I click on « View as KML », the 
function returns a pop up window to download the file mapagent.fcgi.
With MGOS 4.0 P4 and IIS under Win10.
Also I have no problem with the viewer directory but, when I am trying to 
display the REACT viewer with the  sample directory, mostly everything is OK 
except  the « View as KML »  function. When I click on « View as KML », the 
function returns a pop up window to download the file mapagent.fcgi.
Regards,
Pierre

 

-- 

Please Note: I no longer create new posts or post replies to any OSGeo mailing 
list through nabble. As a result, you most likely won't see this message appear 
on nabble's view of any OSGeo mailing list and may only see this message 
through mailing list archives or depending on your mailing list subscription 
settings, through daily message digests or automated notifications from the 
mailing lists.

  _____  

_______________________________________________

mapguide-users mailing list

mapguide-users@lists.osgeo.org <mailto:mapguide-users@lists.osgeo.org> 

https://lists.osgeo.org/mailman/listinfo/mapguide-users

 

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

Reply via email to