Web API Reference | MapGuide Open Source |
Generates an eMap that describes the specified map.
.NET Syntax
Java Syntax
PHP Syntax
Example (PHP)
// Assuming $resourceService and $mappingService have already been // initialized. // Get a runtime map from a map definition $resourceID = new MgResourceIdentifier('Library://Calgary/Maps/Calgary.MapDefinition'); $map = new MgMap(); $map->Create($resourceService, $resourceID, 'Calgary'); // Generate a DWF from the map $mapAgentURI = 'http://localhost/phpmapagent/mapAgent.php'; // Replace 'localhost' with your server name $dwfVersion = new MgDwfVersion('6.01','1.2'); $byteReader = $mappingService->GenerateMap($map, $mapAgentURI, $dwfVersion);
|