Open($userInfo); $resSvc = $siteConn->CreateService(MgServiceType::ResourceService); //Commercial sample $res1 = new MgResourceIdentifier("Library://Samples/Sheboygan/Maps/SheboyganCommercial.MapDefinition"); $bs1 = new MgByteSource(dirname(__FILE__)."/SheboyganCommercial.MapDefinition.xml"); $br1 = $bs1->GetReader(); $resSvc->SetResource($res1, $br1, null); //Mixed sample $res2 = new MgResourceIdentifier("Library://Samples/Sheboygan/Maps/SheboyganMixed.MapDefinition"); $bs2 = new MgByteSource(dirname(__FILE__)."/SheboyganMixed.MapDefinition.xml"); $br2 = $bs2->GetReader(); $resSvc->SetResource($res2, $br2, null); ?>

Sample resources required for OpenLayers integration samples loaded.

Return to samples

To load the sample resources required for OpenLayers integration samples, login as Administrator

NOTE: Make sure you have already downloaded the Sheboygan Dataset and load this in via the MapGuide Site Administrator first before loading these OpenLayers integration sample resources

Username:
Password:

Return to samples

An error occured:

GetDetails() ?>

Go back

Return to samples