Hi I am converting from Maestro API 4 to 6 and I have a problem converting
from xml file to an ILayer definition.
I used to do this:
ILayerDefinition ldef =
(ILayerDefinition)ResourceTypeRegistry.Deserialize(ResourceTypes.LayerDefinition,
file.GetInputStream(e));
But the ResourceTypeRegistry
I might have found a way to do it with Maestro API 6. However I need to solve
the 1000+ compiler errors after swapping the API, before I can confirm that
it works:
ILayerDefinition ldef =
(ILayerDefinition)ObjectFactory.Deserialize("ILayerDefinition",
file.GetInputStream(e));
As a side note (to J
If I can recall correctly, the reason I've moved from ResourceTypes enum to
string wherever it is required in the Maestro API is simply a means of
future-proofing the Maestro API against any possible new resource types that
could be introduced by MapGuide in the future.
So the resource type you sh
Have a look at this gist and adjust accordingly to your needs.
https://gist.github.com/jumpinjackie/35b0e051e427310524fd20b210adfea4
- Jackie
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/How-can-i-add-point-with-given-coordinates-on-markup-layer-tp5286443p5287305.html