viewing satellite map image

Kencana bluesky_dyx at hotmail.com
Sun Nov 5 21:42:17 EST 2006


hi Jason,

Thanx for the reply...you are saying that if i have the satellite images
then the easiest way is to make the map that contains both normal and
satellite..what if I don't have the satellite image?is that possible to link
to the google map and get the image?if yes, how it can be done?by the
way...i have another question which is..is that possible to attach a tooltip
to the push pin just like google map have done..user can close the tool tip,
access some features such as "What is near by",etc..
I am looking forward for the reply and thank you for the guidance...

Regards,
Kencana


Jason Birch wrote:
> 
> If you have the satellite images...
>  
> The easiest way would be to make your map contain both the normal and the
> satellite images as layer groups.  Make neither of them visible in the
> legend.  Define the map with the normal layergroup enabled and the
> satellite image layer group disabled.  
>  
> Create a button that calls a PHP script in the script frame.  Make this
> php script programmatically check the state of these two layer groups in
> the current session, turn off the one that is on and the reverse, and
> refresh the map.  
>  
> The basic workflow is something like (untested, and not guaranteed):
>  
>  - GetMap from the session
>  - GetLayerGroups from the MgMap
>  - GetItem from the MgLayerGroupCollection for the satellite group
>  - GetVisible and then SetVisible (to the inverse of current value) 
>  - repeat last two steps for the normal group
>  - output some JS to cause a map refresh
>  
> There is some example code here to help you along here:
>  
> https://mapguide.osgeo.org/nonav/docs/webapi/da/df8/class_mg_map.html
>  
> You'll be working with the current session map, rather than creating a new
> one.  The existing tasks in the viewer sample should help you figure that
> part out.  
>  
> As far as tying the button (or some other element) to this function,
> passing the current session id, etc, someone else will need to help with
> that; I don't have a lot of experience there.
>  
> Jason
> 
> ________________________________
> 
> From: Kencana
> Sent: Thu 2006-11-02 11:38 PM
> To: users at mapguide.osgeo.org
> Subject: [mapguide-users] viewing satellite map image
> 
> 
> 
> 
> Hi all,
> 
> Is that possible to change the map view from normal map image to the
> satellite map image just like what google map did?is that possible to be
> done with map guide?if yes,can I know how to do it?
> I am looking forward for the reply, and thank you for the guidance...
> 
> Regards,
> Kencana
> 
> 
> 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
> 

-- 
View this message in context: http://www.nabble.com/viewing-satellite-map-image-tf2566435.html#a7192488
Sent from the MapGuide Users mailing list archive at Nabble.com.





More information about the Mapguide-users mailing list