[mapguide-users] Regarding How to set the Initial Map View

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Wed Feb 18 05:05:09 EST 2009


Please have a look at the Maestro code:
http://trac.osgeo.org/mapguide/browser/trunk/Tools/Maestro/Maestro/ResourceEditors/MapEditor.cs#L1895

It shows how to read the extent of data, as well as how to set it.

Regards, Kenneth Skovhede, GEOGRAF A/S



ravinder.singh at BIRLASOFT.COM skrev:
>
> Hi,
>
>  
>
> Although it solved out my problem of setting the initial map View at 
> Design time in maestro.
>
> Now I have written the code to set the layer of map dynamically by 
> using maestro api, the map is showing correct layer in viewer. Now I 
> want to set the Initial Map View (Lower Left and Upper Right (XY 
> Coordinates)) at run time by fetching the extents of the layer.
>
>  
>
> Please assist...
>
>  
>
> *Thanks*
>
> Ravinder
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of 
> *ravinder.singh at BIRLASOFT.COM
> *Sent:* Tuesday, February 17, 2009 4:19 PM
> *To:* mapguide-users at lists.osgeo.org
> *Subject:* RE: [mapguide-users] Regarding How to set the Initial Map View
>
>  
>
> Hi Kenneth,
>
>  
>
> Yes it solved out my problem.
>
>  
>
> Thanks
>
>  
>
> Regards,
>
> Ravi
>
> ------------------------------------------------------------------------
>
> *From:* mapguide-users-bounces at lists.osgeo.org 
> [mailto:mapguide-users-bounces at lists.osgeo.org] *On Behalf Of *Kenneth 
> Skovhede, GEOGRAF A/S
> *Sent:* Tuesday, February 17, 2009 1:38 PM
> *To:* MapGuide Users Mail List
> *Subject:* Re: [mapguide-users] Regarding How to set the Initial Map View
>
>  
>
> There was a bug in Maestro that swapped some x/y coordinates, try 
> using the newest build (r3260).
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>
> ravinder.singh at BIRLASOFT.COM <mailto:ravinder.singh at BIRLASOFT.COM> skrev:
>
> Hi All,
>
>  
>
> How to set the Initial Map View (Lower Left and Upper Right (XY 
> Coordinates)) in MapGuide Maestro.
>
> If I click on Set View to Current Layers Extent (In Maestro) & Run the 
> layout then map does not appears in the viewer , seems that  map is 
> there on the viewer but at different position which is not visible at 
> startup, Because when I try to pan the map multiple times left or 
> right up or down  it appears.
>
>  
>
> I am using MGOS 2.0, .Net
>
>  
>
> Please assist...
>
>  
>
> *Thanks,*
>
> Ravi
>
>  
>
> *********************************************************************************************************************************************************************
> "This message and any attachments are solely for the intended 
> recipient and may contain Birlasoft confidential or privileged 
> information. If you are not the intended recipient,any 
> disclosure,copying, use, or distribution of the information included 
> in this message and any attachments is
> prohibited. If you have received this communication in error, please 
> notify us by reply e-mail at (administrator at birlasoft.com 
> <mailto:administrator at birlasoft.com>) and permanently delete this 
> message and any attachments. Thank you."
> *********************************************************************************************************************************************************************
>
>  
>  
>  
>
>
> ------------------------------------------------------------------------
>
>
>  
>  
>  
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
> *********************************************************************************************************************************************************************
> "This message and any attachments are solely for the intended 
> recipient and may contain Birlasoft confidential or privileged 
> information. If you are not the intended recipient,any 
> disclosure,copying, use, or distribution of the information included 
> in this message and any attachments is
> prohibited. If you have received this communication in error, please 
> notify us by reply e-mail at (administrator at birlasoft.com) and 
> permanently delete this message and any attachments. Thank you."
> *********************************************************************************************************************************************************************
>
> *********************************************************************************************************************************************************************
> "This message and any attachments are solely for the intended 
> recipient and may contain Birlasoft confidential or privileged 
> information. If you are not the intended recipient,any 
> disclosure,copying, use, or distribution of the information included 
> in this message and any attachments is
> prohibited. If you have received this communication in error, please 
> notify us by reply e-mail at (administrator at birlasoft.com) and 
> permanently delete this message and any attachments. Thank you."
> *********************************************************************************************************************************************************************
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20090218/de5cab8d/attachment.html


More information about the mapguide-users mailing list