<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
If you have VS2005, I think the SP1 installs the "original" Web method
as a "Web Solution".<br>
I can't really remember how to get around it, as I have VS 2008 now.<br>
<br>
You usually don't "change the map", rather, you start with another map,
which you can then modify.<br>
<br>
If you want to see how to modify the map during runtime, there are some
examples for using the MaestroAPI here:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI">http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI</a><br>
<br>
You can do the same using the regular API, although the class names,
etc. are different.<br>
<br>
The two examples "Adding a layer before startup via Maestro API" and
"Modifying the filter on a layer"<br>
are good examples for understanding where to plug into MapGuide.<br>
<br>
Could you try to explain a specific task that you need to perform?<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Nitin Chaturvedi skrev:
<blockquote
 cite="mid:59d60ea20911050443uc2444a8y1b1609bdf806a72e@mail.gmail.com"
 type="cite">
  <pre wrap="">Thanks a ton Kenneth,

I've done that already...
&amp; thanks to you I'm able to create my Map with shape files....... but
again its through Maestro &amp; I can browse the map through it only. I
need to know how to change the map in the sample application as it
continues to display Sheboygan data.
secondly I have VS2005. If we discard the website method. Kindly
elaborate how to go about it.

thanks a Ton again U're gr8 (I'm actually exited to see the map with
shape files and now eager to use it on my own application)!!!

On Thu, Nov 5, 2009 at 1:54 PM, Kenneth Skovhede, GEOGRAF A/S
<a class="moz-txt-link-rfc2396E" href="mailto:ks@geograf.dk">&lt;ks@geograf.dk&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">If you have MapGuide Enterprise, you also have MapGuide Studio.
If you have either MapGuide Enterprise or MapGuideOpenSource,
you can try MapGuide Maestro:
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/maestro">http://trac.osgeo.org/mapguide/wiki/maestro</a>

Either tool can help you set up a map.
If you are starting 100% from scratch, you can install the sample data
package (called Sheboygan):
<a class="moz-txt-link-freetext" href="http://mapguide.osgeo.org/download/releases/2.0.x-samples">http://mapguide.osgeo.org/download/releases/2.0.x-samples</a>

Once you have a WebLayout working in Studio/Maestro, you can click the
"Preview" button.
This will show you the map in a working environment.

This environment is also a sample of how to develop such an application!
All the code for the various actions can be found in:
C:\Program Files\MapGuideOpenSource\Web\www\

(If you want to develop .Net applications, you must select the .Net API
during the install process).

To start developing an application, you bascially create a new .Net Web
Solution.

Carefull: don't use the "WebSite" method, as that is intended for CMS like
solutions,
and very hard to get working with MapGuide. Unfortunately this is default
with VS2005.

The Web solution must use IIS, not the internal development server,
configureable from the
project properties. If the "Web" tab is missing, or is missing the "Servers"
section, you have the
wrong type of "Web site".

Next, copy all dll's from MapGuide into the "bin" folder in your project.
The dll's are located here:
C:\Program Files\MapGuideOpenSource\WebExtensions\www\mapviewernet\bin

Then add a reference to the MapGuideDotNetApi.dll.

You can now access all the Mg* objects.

See the aspx files for samples:
C:\Program Files\MapGuideOpenSource\WebExtensions\www\mapviewernet\*.aspx

More samples here:
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/CodeSamples">http://trac.osgeo.org/mapguide/wiki/CodeSamples</a>

And make sure you read the FAQ:
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ">http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ</a>

Regards, Kenneth Skovhede, GEOGRAF A/S



Nitin Chaturvedi skrev:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi everyone,

I'm totally new to MG. I'm trying to understand and develop a small
web application using .net and .SHP files. I've been reading all the
documentation provided with MG and have understood about the 3 tiers.
But unable to understand how to develop an application in .net I tried
to work on the sample applications provided with MG installer (windows
&amp; IIS) but they are giving a lot of reference errors.

I need help BIG Time......

It would be really helpful if someone could provide me with a simple
"working" .net code which shows map, and options to zoom in/out, pan
and get info of features.

Thanks in advance !!

Warm Regards,
Nitin
_______________________________________________
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>
    <pre wrap="">_______________________________________________
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>
  <pre wrap=""><!---->_______________________________________________
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>