One nice place near Marble Mountain is Mount Megantic. This mountain
is surrounded by ridges that are so beautifull to cross during the
winter with snowshoes.

Concerning the possibility to use Raster Maps at lower zoom levels
where Vector maps are not available, I found the following solution
using GEvent.addListener and added instructions to the test file
http://www.clubmontagnecanadien.qc.ca/sentier/toporama.htm.

        // raster map used for zoom levels 7 to 10
        var NRCAN_TOPO = WMSCreateMap('TopoCan Raster','<img alt="carte
produite sur le site du cMc" src="../images/favicon.jpg" /> &nbsp;
&nbsp; &copy; Natural Ressources Department of Canada','http://
wms.cits.rncan.gc.ca/cgi-bin/cubeserv.cgi?exceptions=application/
vnd.ogc.se_inimage&style=default','PUB_50K:CARTES_MATRICIELLES/
RASTER_MAPS&transparent=true', 7, 18, 't' );

        raster = new GTileLayerOverlay( NRCAN_TOPO.getTileLayers()[0] );
        var raster_overlay=0;

        GEvent.addListener(carte, "zoomend", function()
        {
          if (carte.getCurrentMapType() == NRCAN_TOPORAMA_A)
          {
                  zoom=carte.getZoom();
                  if (zoom <=10) {carte.addOverlay(raster); raster_overlay=1;}
             else if (raster_overlay==1) {carte.removeOverlay(raster);
raster_overlay=0;}
          }
        }  );
        GEvent.addListener(carte, "maptypechanged", function()
        {
          if (carte.getCurrentMapType() != NRCAN_TOPORAMA_A)
          {
                  if (raster_overlay==1)
                  {carte.removeOverlay(raster); raster_overlay=0;}
          }
          else
          if (carte.getCurrentMapType() == NRCAN_TOPORAMA_A)
          {
                  zoom=carte.getZoom();
                  if (zoom <=10) {carte.addOverlay(raster); raster_overlay=1;}
          }
        }  );

Pierre
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to