[mapguide-users] RE: Navigator(Zoom Slider), Virtual Earth Zoom,
open layers in Basic web layout
Chris Claydon
chris.claydon at autodesk.com
Thu Sep 10 12:25:56 EDT 2009
I can provide some vague answers - hopefully someone else on the list can provide more detail...
For item 1....
The Navigator is contained by the <div> with the id "Navigator". The location of the div is controlled by settings in the CSS file...
#Navigator {
right: 10px;
top: 10px;
display: block;
}
This is easy to spot in jxtheme.uncompressed.css, but the slate template uses the compressed version (jxtheme.css) for maximum performance. If you find this section in the compressed file:
#Navigator{right:10px;top:10px;display:block;}
You should be able to modify the location.
For Item 2...
I think the maximum number of zoom levels is about 20, and I'm not sure what happens if you try to set it too high - it might use the maximum value or it might revert to the default. There is also an issue that you can set the number of levels on either the layer or the map object and I'm not sure which one takes precedence.
For item 3...
The Google/MSVE support is based upon the use of OpenLayers, which is used by Fusion, but not by the Basic viewer, so it would be a LOT of work to add it into a basic layout. It is also possible to use OpenLayers all by itself outside of either viewer, but you then lose all the buttons etc from the web layouts.
One other thing to consider - the trunk version of Fusion supports Google/VE layers simply by modifying the flexible web layout definition. It might be worth looking into that.
Chris.
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Fraser Burgess
Sent: Thursday, September 10, 2009 9:19 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Navigator(Zoom Slider), Virtual Earth Zoom, open layers in Basic web layout
Hi,
I have a few questions and was hoping to get some suggestions from the list. I'm running the MapGuide Enterprise 2010 :
1. How can I move the Navigator(zoom slider) control in the fusion slate viewer? Currently it is fixed at the top right and I would like to move it to the top left.
2. Using the usual 'addGoogleStuff' code I've added with Virtual Earth base layers along with Google base layers in the Slate fusion template. I am unable to zoom in past about 1:5000 when I use the Virtual Earth base layers. I believe there should still be 2 more zoom levels I should be able to achieve with virtual earth base layers. The numZoomLevels option is set to 30 which I think is far more than what is offered in MSVE. Using Google Earth as my base I can zoom right in. Any idea how I can zoom in closer to the MSVE base layers
3. So I've been somewhat successful at adding the 'addgooglestuff' code to a flexible fusion layout. Is it possible to do the same thing in a Basic Ajax Layout? If so what file should I be adding code to use the google / MSVE as a base in my Basic Web Layout. Is t here any sample pages out there that have done this?
Thanks
Fraser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090910/a989d05b/attachment.html
More information about the mapguide-users
mailing list