[mapguide-users] Creating and adding layers

Dejan Gregor dejan.gregor at gmail.com
Wed Nov 4 03:28:01 EST 2009


Thanks a lot, Kenneth! Wow, didn't know it can be implemented so easy.

Dejan

On Wed, Nov 4, 2009 at 09:16, Kenneth Skovhede, GEOGRAF A/S
<ks at geograf.dk>wrote:

>  Yes, it is possible.
>
> You need a "runtime map" instance.
>
> Short C# example:
>
> MgResourceService srvc;
> MgMap map = new MgMap();
> map.Open(srvc, "mapname");
> MgLayer layer = new MgLayer();
> ... set layer properties, such as .LayerDefinition path ...
> map.Layers.Add(layer);
> map.Save(srvc, "mapname");
>
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> Dejan Gregor skrev:
>
> Hi,
>
>  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?
>
>  It is an actual configuration change of the 'map' that is not done in
> Mapguide Mestro.
>
>  Dejan
>
> On Wed, Nov 4, 2009 at 08:39, Kenneth Skovhede, GEOGRAF A/S <ks at geograf.dk
> > wrote:
>
>> There is a short (incomplete) guide here that explains the procedure from
>> a users viewpoint:
>> http://trac.osgeo.org/mapguide/wiki/maestro/UserGuide
>>
>> If you have MapGuide Enterprise, you can get Studio for free, which has a
>> manual in the "Help" menu.
>>
>> If you need to create data as well, you need a GIS client application,
>> such as Autocad Map, ArcGIS or MapInfo.
>> (There are free clients avalible as well)
>>
>> Your question is a bit vague, so if this is an answer to another question,
>> can you explain your current setup?
>>
>>
>> Regards, Kenneth Skovhede, GEOGRAF A/S
>>
>>
>>
>>  oshan skrev:
>>
>>  Hi
>>>
>>> I want to know how to create layers?
>>> Say that you have a map and you want to create layers for political
>>> divisions. How would you go about doing this?
>>>
>>> I ask this before but I didn't get any answer. My apologies if its a
>>> stupic
>>> question! Since I don't really have any good vectored based maps, is it
>>> possible to use a jpeg as a base image? How do I achieve this?
>>>
>>> I appreciate any help
>>> Thanks
>>>
>>>
>>  _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>
>  ------------------------------
>
> _______________________________________________
> mapguide-users mailing listmapguide-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20091104/2badf2ab/attachment.html


More information about the mapguide-users mailing list