[mapguide-users] Maestro Api runtime map selection

Jamo adam.jamison at portbris.com.au
Tue Mar 2 15:57:28 EST 2010


Ok I started creating a class of my own that would produce a layer definition
and save it to the repository...
Got upto the point of creating vector scale ranges and thought ..... Dang
this has already been done.
Enter --> Maestro Api.
Is this the correct place to be asking about the maestro api?

Can maestro Api create an SDF data store ? with actual SDF data file ....?
Can maestro Api write features to the SDF data store ?


It looks like It can do everything else I need.
prepare a new layerdefinition and add it to the map. (and save it to the
library if the user requires)
grab existing layer definition amend it and save it back.


I've been requested to improve my markup tools to include more variety, at
the moment users can just draw a red line draw a red polygon and place a red
ricle ..... very bland.
I'm suggesting maybe to produce a dialog that lets the user choose all the
style options themselves. then save it as a vectorscale range and filter it
with style = 1, style =2 on the actual elements...

I'm just trying some basic maestro commands and the below code returns no
selection (blank featureset) ....
Have I got the real instance of the runtime map?

Uri host = new Uri(mapagent);
ServerConnectionI conn = new HttpServerConnection(host, sessionId, "en",
true);
ResourceIdentifier res = new
ResourceIdentifier("PortBris",ResourceTypes.RuntimeMap,sessionId);
RuntimeMap rtMap = conn.GetRuntimeMap(res.ResourceId);
Response.Write(rtMap.Selection);

-- 
View this message in context: http://n2.nabble.com/Maestro-Api-runtime-map-selection-tp4663628p4663628.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list