|
|
|
Nitin Chaturvedi
|
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 & 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Kenneth Skovhede, GEOGRAF A/S
|
If you have MapGuide Enterprise, you also have MapGuide Studio.
If you have either MapGuide Enterprise or MapGuideOpenSource, you can try MapGuide Maestro: http://trac.osgeo.org/mapguide/wiki/maestro 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): http://mapguide.osgeo.org/download/releases/2.0.x-samples 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: http://trac.osgeo.org/mapguide/wiki/CodeSamples And make sure you read the FAQ: http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: > 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 > & 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 > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
|
Nitin Chaturvedi
|
Thanks a ton Kenneth,
I've done that already... & thanks to you I'm able to create my Map with shape files....... but again its through Maestro & 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 <[hidden email]> wrote: > If you have MapGuide Enterprise, you also have MapGuide Studio. > If you have either MapGuide Enterprise or MapGuideOpenSource, > you can try MapGuide Maestro: > http://trac.osgeo.org/mapguide/wiki/maestro > > 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): > http://mapguide.osgeo.org/download/releases/2.0.x-samples > > 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: > http://trac.osgeo.org/mapguide/wiki/CodeSamples > > And make sure you read the FAQ: > http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > > Nitin Chaturvedi skrev: >> >> 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 >> & 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 >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Kenneth Skovhede, GEOGRAF A/S
|
Some javascript/style in this post has been disabled (why?)
I can't really remember how to get around it, as I have VS 2008 now. You usually don't "change the map", rather, you start with another map, which you can then modify. If you want to see how to modify the map during runtime, there are some examples for using the MaestroAPI here: http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI You can do the same using the regular API, although the class names, etc. are different. The two examples "Adding a layer before startup via Maestro API" and "Modifying the filter on a layer" are good examples for understanding where to plug into MapGuide. Could you try to explain a specific task that you need to perform? Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: Thanks a ton Kenneth, I've done that already... & thanks to you I'm able to create my Map with shape files....... but again its through Maestro & 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 [hidden email] wrote:If you have MapGuide Enterprise, you also have MapGuide Studio. If you have either MapGuide Enterprise or MapGuideOpenSource, you can try MapGuide Maestro: http://trac.osgeo.org/mapguide/wiki/maestro 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): http://mapguide.osgeo.org/download/releases/2.0.x-samples 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: http://trac.osgeo.org/mapguide/wiki/CodeSamples And make sure you read the FAQ: http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: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 & 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Nitin Chaturvedi
|
Hi kenneth,
My simple sole purpose is to show data of an area (delhi) and show point of interests and provide the user with options to do various kinds of search on those POIs. Thanks to your guidance I've created a new map and added layers of delhi (shape Files). Now I'm stuck at the coding part. I'm getting errors in the dotnetsamples application and don't know how to display the map of delhi in my own application. However when I browse the through Maestro the map is coming perfectly with the themes that I've applied. don't know head or tail of what to do and where to start ! :) thanks for your help !!!! Nitin On Thu, Nov 5, 2009 at 7:44 PM, Kenneth Skovhede, GEOGRAF A/S <[hidden email]> wrote: > If you have VS2005, I think the SP1 installs the "original" Web method as a > "Web Solution". > I can't really remember how to get around it, as I have VS 2008 now. > > You usually don't "change the map", rather, you start with another map, > which you can then modify. > > If you want to see how to modify the map during runtime, there are some > examples for using the MaestroAPI here: > http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI > > You can do the same using the regular API, although the class names, etc. > are different. > > The two examples "Adding a layer before startup via Maestro API" and > "Modifying the filter on a layer" > are good examples for understanding where to plug into MapGuide. > > Could you try to explain a specific task that you need to perform? > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > Nitin Chaturvedi skrev: > > Thanks a ton Kenneth, > > I've done that already... > & thanks to you I'm able to create my Map with shape files....... but > again its through Maestro & 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 > <[hidden email]> wrote: > > > If you have MapGuide Enterprise, you also have MapGuide Studio. > If you have either MapGuide Enterprise or MapGuideOpenSource, > you can try MapGuide Maestro: > http://trac.osgeo.org/mapguide/wiki/maestro > > 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): > http://mapguide.osgeo.org/download/releases/2.0.x-samples > > 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: > http://trac.osgeo.org/mapguide/wiki/CodeSamples > > And make sure you read the FAQ: > http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > > Nitin Chaturvedi skrev: > > > 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 > & 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 > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Ivan Miličević-3
|
Could you post a screen or error details?
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Nitin Chaturvedi Sent: Friday, November 06, 2009 1:12 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] totally new to MG Hi kenneth, My simple sole purpose is to show data of an area (delhi) and show point of interests and provide the user with options to do various kinds of search on those POIs. Thanks to your guidance I've created a new map and added layers of delhi (shape Files). Now I'm stuck at the coding part. I'm getting errors in the dotnetsamples application and don't know how to display the map of delhi in my own application. However when I browse the through Maestro the map is coming perfectly with the themes that I've applied. don't know head or tail of what to do and where to start ! :) thanks for your help !!!! Nitin On Thu, Nov 5, 2009 at 7:44 PM, Kenneth Skovhede, GEOGRAF A/S <[hidden email]> wrote: > If you have VS2005, I think the SP1 installs the "original" Web method as a > "Web Solution". > I can't really remember how to get around it, as I have VS 2008 now. > > You usually don't "change the map", rather, you start with another map, > which you can then modify. > > If you want to see how to modify the map during runtime, there are some > examples for using the MaestroAPI here: > http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI > > You can do the same using the regular API, although the class names, etc. > are different. > > The two examples "Adding a layer before startup via Maestro API" and > "Modifying the filter on a layer" > are good examples for understanding where to plug into MapGuide. > > Could you try to explain a specific task that you need to perform? > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > Nitin Chaturvedi skrev: > > Thanks a ton Kenneth, > > I've done that already... > & thanks to you I'm able to create my Map with shape files....... but > again its through Maestro & 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 > <[hidden email]> wrote: > > > If you have MapGuide Enterprise, you also have MapGuide Studio. > If you have either MapGuide Enterprise or MapGuideOpenSource, > you can try MapGuide Maestro: > http://trac.osgeo.org/mapguide/wiki/maestro > > 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): > http://mapguide.osgeo.org/download/releases/2.0.x-samples > > 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: > http://trac.osgeo.org/mapguide/wiki/CodeSamples > > And make sure you read the FAQ: > http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ > > Regards, Kenneth Skovhede, GEOGRAF A/S > > > > Nitin Chaturvedi skrev: > > > 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 > & 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 > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > > mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Nitin Chaturvedi
|
I'd surely post the screenshot in a while!
but at the moment can you tell me how to set the new map that I've created using Maestro? I'm getting only the Shebogyan map in my samples. if I view it by browsing through maestro the map appears perfectly, but if I browse MAIN.aspx its showing shebogyan :( How to change the source of the map? Thr new map is created using shape files ! Help awaited !! :( 2009/11/6 Ivan Miličević <[hidden email]>: > Could you post a screen or error details? > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Nitin Chaturvedi > Sent: Friday, November 06, 2009 1:12 PM > To: MapGuide Users Mail List > Subject: Re: [mapguide-users] totally new to MG > > Hi kenneth, > > My simple sole purpose is to show data of an area (delhi) and show > point of interests and provide the user with options to do various > kinds of search on those POIs. Thanks to your guidance I've created a > new map and added layers of delhi (shape Files). Now I'm stuck at the > coding part. > > I'm getting errors in the dotnetsamples application and don't know how > to display the map of delhi in my own application. However when I > browse the through Maestro the map is coming perfectly with the themes > that I've applied. > > don't know head or tail of what to do and where to start ! :) > > thanks for your help !!!! > > Nitin > > On Thu, Nov 5, 2009 at 7:44 PM, Kenneth Skovhede, GEOGRAF A/S > <[hidden email]> wrote: >> If you have VS2005, I think the SP1 installs the "original" Web method as a >> "Web Solution". >> I can't really remember how to get around it, as I have VS 2008 now. >> >> You usually don't "change the map", rather, you start with another map, >> which you can then modify. >> >> If you want to see how to modify the map during runtime, there are some >> examples for using the MaestroAPI here: >> http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI >> >> You can do the same using the regular API, although the class names, etc. >> are different. >> >> The two examples "Adding a layer before startup via Maestro API" and >> "Modifying the filter on a layer" >> are good examples for understanding where to plug into MapGuide. >> >> Could you try to explain a specific task that you need to perform? >> >> Regards, Kenneth Skovhede, GEOGRAF A/S >> >> >> Nitin Chaturvedi skrev: >> >> Thanks a ton Kenneth, >> >> I've done that already... >> & thanks to you I'm able to create my Map with shape files....... but >> again its through Maestro & 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 >> <[hidden email]> wrote: >> >> >> If you have MapGuide Enterprise, you also have MapGuide Studio. >> If you have either MapGuide Enterprise or MapGuideOpenSource, >> you can try MapGuide Maestro: >> http://trac.osgeo.org/mapguide/wiki/maestro >> >> 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): >> http://mapguide.osgeo.org/download/releases/2.0.x-samples >> >> 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: >> http://trac.osgeo.org/mapguide/wiki/CodeSamples >> >> And make sure you read the FAQ: >> http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ >> >> Regards, Kenneth Skovhede, GEOGRAF A/S >> >> >> >> Nitin Chaturvedi skrev: >> >> >> 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 >> & 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 >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> >> >> _______________________________________________ >> mapguide-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> >> >> _______________________________________________ >> mapguide-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> >> _______________________________________________ >> mapguide-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/mapguide-users >> >> > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > _______________________________________________ > mapguide-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
|
Kenneth Skovhede, GEOGRAF A/S
|
Some javascript/style in this post has been disabled (why?)
If you read up on the samples for the Maestro API, you should notice a
redirect (last line):http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI/samples/AddInitialLayer The redirect looks like this: Response.Redirect("/mapguide/ajaxviewer/?LAYOUT=" & Server.UrlEncode(tempWebLayout) & "&SESSION=" & Server.UrlEncode(con.SessionID), true)
For this to work, simply set the tempWebLayout variable to point at
your map.You don't need the SessionID for starters, you can just add: &USERNAME=Anonymous&PASSWORD= So you get: Response.Redirect("/mapguide/ajaxviewer/?LAYOUT=" & Server.UrlEncode(tempWebLayout) & "&USERNAME=Anonymous&PASSWORD=", true)
What code is inside the file main.aspx that you mention? Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: I'd surely post the screenshot in a while! but at the moment can you tell me how to set the new map that I've created using Maestro? I'm getting only the Shebogyan map in my samples. if I view it by browsing through maestro the map appears perfectly, but if I browse MAIN.aspx its showing shebogyan :( How to change the source of the map? Thr new map is created using shape files ! Help awaited !! :( 2009/11/6 Ivan Miličević [hidden email]:Could you post a screen or error details? -----Original Message----- From: [hidden email] [[hidden email]] On Behalf Of Nitin Chaturvedi Sent: Friday, November 06, 2009 1:12 PM To: MapGuide Users Mail List Subject: Re: [mapguide-users] totally new to MG Hi kenneth, My simple sole purpose is to show data of an area (delhi) and show point of interests and provide the user with options to do various kinds of search on those POIs. Thanks to your guidance I've created a new map and added layers of delhi (shape Files). Now I'm stuck at the coding part. I'm getting errors in the dotnetsamples application and don't know how to display the map of delhi in my own application. However when I browse the through Maestro the map is coming perfectly with the themes that I've applied. don't know head or tail of what to do and where to start ! :) thanks for your help !!!! Nitin On Thu, Nov 5, 2009 at 7:44 PM, Kenneth Skovhede, GEOGRAF A/S [hidden email] wrote:If you have VS2005, I think the SP1 installs the "original" Web method as a "Web Solution". I can't really remember how to get around it, as I have VS 2008 now. You usually don't "change the map", rather, you start with another map, which you can then modify. If you want to see how to modify the map during runtime, there are some examples for using the MaestroAPI here: http://trac.osgeo.org/mapguide/wiki/maestro/MaestroAPI You can do the same using the regular API, although the class names, etc. are different. The two examples "Adding a layer before startup via Maestro API" and "Modifying the filter on a layer" are good examples for understanding where to plug into MapGuide. Could you try to explain a specific task that you need to perform? Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: Thanks a ton Kenneth, I've done that already... & thanks to you I'm able to create my Map with shape files....... but again its through Maestro & 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 [hidden email] wrote: If you have MapGuide Enterprise, you also have MapGuide Studio. If you have either MapGuide Enterprise or MapGuideOpenSource, you can try MapGuide Maestro: http://trac.osgeo.org/mapguide/wiki/maestro 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): http://mapguide.osgeo.org/download/releases/2.0.x-samples 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: http://trac.osgeo.org/mapguide/wiki/CodeSamples And make sure you read the FAQ: http://trac.osgeo.org/mapguide/wiki/CodeSamples/AspDotNet/DevFAQ Regards, Kenneth Skovhede, GEOGRAF A/S Nitin Chaturvedi skrev: 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 & 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 [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users _______________________________________________ mapguide-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/mapguide-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |