[mapguide-users] overview map

Kenneth, GEOGRAF A/S ks at geograf.dk
Thu Sep 13 07:06:11 EDT 2007


I have no samples, and have not tried to build the overview map, but it 
would be nice to have.

You can look at how the AJAX viewer refreshes the current map.
The function Refresh(), should lead you through the steps taken.

You can request a map from the MapAgent by using the form:
http://localhost/mapguide/mapagent/index.html
Choose "Rendering" and "GetMapImage".

If you fill out the fields, it will display an image, and you can right 
click that image, choose properties, and see how the URL is constructed.
You can also take a look at how the form on the submit page is constructed.

You the need to issue a request from within the viewer, that retrieves 
this "mini map", using the GETMAPIMAGE request.
You can place it in a <div> or <iframe> tag, and set its z-order to be 
above the map's.
If you want a marker that shows the currentl display extent, you have 
two ways:
1. Create a temporary featuresource (aka. markup, redlining, etc) and 
update the featuresource object to be equal to the extent of the current 
map.
2. Convert the current map coordinates into "mini map" image 
coordinates, and display an overlay image on your "mini map".

#1 is probably easier, but #2 will provide faster user feedback.
Hope that is enough to get you started, if there are no ready made 
examples comming in.

Regards, Kenneth, GEOGRAF A/S



Mbonnet skrev:
> hi,
>
> i want to create an overview map (mini map). but i can't find any exemple.
> you will really help me if you could send me a sample or some kind of a
> beginning of answer.
>
> thanks
>   


More information about the mapguide-users mailing list