Thanks a lot, Kenneth! Wow, didn't know it can be implemented so easy.<div><br></div><div>Dejan<br><br><div class="gmail_quote">On Wed, Nov 4, 2009 at 09:16, Kenneth Skovhede, GEOGRAF A/S <span dir="ltr"><<a href="mailto:ks@geograf.dk">ks@geograf.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Yes, it is possible.<br>
<br>
You need a "runtime map" instance.<br>
<br>
Short C# example:<br>
<br>
MgResourceService srvc;<br>
MgMap map = new MgMap();<br>
map.Open(srvc, "mapname");<br>
MgLayer layer = new MgLayer();<br>
... set layer properties, such as .LayerDefinition path ...<br>
map.Layers.Add(layer);<br>
map.Save(srvc, "mapname");<div class="im"><br>
<br>
<pre cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br></div>
Dejan Gregor skrev:
<blockquote type="cite"><div><div></div><div class="h5">Hi,
<div><br>
</div>
<div>I would like to add a question -- is it possible to
programmatically add new layers into the 'map' triggering a command
from the MapGuide web client?</div>
<div><br>
</div>
<div>It is an actual configuration change of the 'map' that is not
done in Mapguide Mestro.</div>
<div><br>
</div>
<div>Dejan<br>
<br>
<div class="gmail_quote">On Wed, Nov 4, 2009 at 08:39, Kenneth
Skovhede, GEOGRAF A/S <span dir="ltr"><<a href="mailto:ks@geograf.dk" target="_blank">ks@geograf.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">There
is a short (incomplete) guide here that explains the procedure from a
users viewpoint:<br>
<a href="http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide" target="_blank">http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide</a><br>
<br>
If you have MapGuide Enterprise, you can get Studio for free, which has
a manual in the "Help" menu.<br>
<br>
If you need to create data as well, you need a GIS client application,
such as Autocad Map, ArcGIS or MapInfo.<br>
(There are free clients avalible as well)<br>
<br>
Your question is a bit vague, so if this is an answer to another
question, can you explain your current setup?
<div><br>
<br>
Regards, Kenneth Skovhede, GEOGRAF A/S<br>
<br>
<br>
<br>
</div>
oshan skrev:
<div><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi<br>
<br>
I want to know how to create layers? <br>
Say that you have a map and you want to create layers for political<br>
divisions. How would you go about doing this?<br>
<br>
I ask this before but I didn't get any answer. My apologies if its a
stupic<br>
question! Since I don't really have any good vectored based maps, is it<br>
possible to use a jpeg as a base image? How do I achieve this?<br>
<br>
I appreciate any help<br>
Thanks<br>
<br>
</blockquote>
</div>
<div>
<div>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div></div><pre><hr size="4" width="90%"><div class="im">
_______________________________________________
mapguide-users mailing list
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</div></pre>
</blockquote>
</div>
<br>_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br></blockquote></div><br></div>