<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body 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");<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Dejan Gregor skrev:
<blockquote
cite="mid:860f58590911040005g555996a7x44bc9ba65bf0b1b8@mail.gmail.com"
type="cite">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 moz-do-not-send="true"
href="mailto:ks@geograf.dk">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 moz-do-not-send="true"
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 class="im"><br>
<br>
Regards, Kenneth Skovhede, GEOGRAF A/S<br>
<br>
<br>
<br>
</div>
oshan skrev:
<div class="im"><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 class="h5">_______________________________________________<br>
mapguide-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>