Re: [mapguide-users] MapGuide 3.1 Ad Layer on Runtime PHP

2017-12-15 Thread Lisa Weber
Jackie,

I had already tried adding in constants.php; it resolved that error but creates 
wrong parameter count errors for MgMap and another fatal error so I removed it 
as I hadn't needed it in AIMS. 
Thanks for confirming it needs to remain. 


Kind Regards,
Lisa

-Original Message-
From: mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf 
Of Jackie Ng
Sent: Saturday, 16 December 2017 12:26 PM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] MapGuide 3.1 Ad Layer on Runtime PHP

MgServiceType is a constant. All MapGuide API constants are found in 
constants.php that should be in www/mapadmin or www/mapviewerphp 

Meaning you're either missing an include/require_once to constants.php (or your 
current path to it is incorrect).

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
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

Re: [mapguide-users] Mapguide 3.1 Add layer on runtime c#

2017-12-15 Thread Jackie Ng
Call save without parameters.

This API was removed in MGOS 3.0, why this didn't trigger a compilation
error on your end is strange, unless your application code was still
referencing .net assemblies from your MGOS 2.6 install.

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide 3.1 Ad Layer on Runtime PHP

2017-12-15 Thread Jackie Ng
MgServiceType is a constant. All MapGuide API constants are found in
constants.php that should be in www/mapadmin or www/mapviewerphp 

Meaning you're either missing an include/require_once to constants.php (or
your current path to it is incorrect).

- Jackie



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.0 printing and quickplot

2017-12-15 Thread Lisa Weber
I didn't need to make changes but I'm using Apache. The only modifications I 
made were to add more scales into the widget javascript.

Lisa

-Original Message-
From: mapguide-users [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf 
Of BMason
Sent: Thursday, 14 December 2017 4:03 AM
To: mapguide-users@lists.osgeo.org
Subject: Re: [mapguide-users] Mapguide 3.0 printing and quickplot

Thanks Lisa,  did both quickplot and print work without any problems when using 
the flexible web layout or did you need to modify any code? 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
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

[mapguide-users] MapGuide 3.1 Ad Layer on Runtime PHP

2017-12-15 Thread Lisa Weber
I am updating codebase originally running on AIMS 2013 to MGOS 3.1 on Apache
and have hit an issue. 

 

 

When updating code associated with calling a layer it keeps erroring out
before calling the layer. The error is:

 

PHP Fatal error:  Class 'MgServiceType' not found in C:\Program
Files\OSGeo\MapGuide\Web\www\VIRTUAL\variety\region_variety_change_filter.ph
p on line 34

 

Line 34 of the code is  $resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService).

 

Here is the code snippet setup used including the line that causes the
error:

 

require_once('../../mapviewerphp/common.php');

   $webconfigFilePath = "C:/Program
Files/OSGeo/MapGuide/Web/www/webconfig.ini";

$mapName = $_REQUEST['MAPNAME'];

  $sessionId = $_REQUEST['SESSION'];

   

MgInitializeWebTier ($webconfigFilePath);

 

$userinfo = new MgUserInformation($sessionId);

$siteConnection = new MgSiteConnection();

$siteConnection->Open($userinfo);

   $resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);

 

I have confirmed that the MapGuide API still lists the class as used above.
I have other reports that I ported straight from AIMS to MGOS 3.1 that work
without issue, so I don't think the issue is code differences between AIMS
and MGOS3.1 but can't rule that out completely. 

 

Is it possible that the code as used is not calling the class properly? Any
help would be appreciated.

 

Thanks,

Lisa

 

 

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

[mapguide-users] Mapguide 3.1 Add layer on runtime c#

2017-12-15 Thread makoychan
Hi,

I was able to add a new layer using mapguide api 3.1 c#  hit forcerefresh
and map.save(resource) but when i try to access it on javascript i still
cant see the new layer. 

On Mapguide 2.6.1 and fusion 2.6 my code is working fine.

Any thoughts or help? been stuck here for quite a while.

Thanks in advance.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] change layer definition runtime

2017-12-15 Thread makoychan
Anyone tried this with MGOS 3.1 and Fusion 3? apparantly after i updated
everything to this version, none of the code works.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users