I have redone my map control script slightly.  What I did was

1) There are no special cases for any map type in any of the
functions.
2) All the WMS URL arguments that are the same for all WMS map types
were put into one variable.
3) The only variable URL argument that go into the function which
create the map type is the layer.
4) Only the coordinates and tile size in are the function return for
WMSGetTileUrl() that gets called for each tile.

These changes do not affect functionality, but merely make it a little
easier for me to maintain the code.  In working through this I
understand the WMS calling arguments better than I had before.

Here's the link: http://tinyurl.com/nuseox


Here's a question for Pierre or Anthony:

The spec sheet which defines the service, namely
http://www.geogratis.gc.ca/geogratis/en/service/toporama.html

Defines 3 classes of scale (which we would call zoom level), namely

CanVec - 1:1,000 to 1:120,000
NTDB - 1:120,000 to 1:370,000
Atlas du Canada - 1:370,000 to 1:55,000,000

As far as I can see, only the first is available.  Is there a way to
access the other scales from this service?  Is there another URL
argument required when going to these wider zoom levels?  I would very
much like to have the if they are available.

If necessary, I could put code in the WMSGetTileUrl() that checks the
zoom level and changes whatever needs to change in the URL arguments.

Thanks

--~--~---------~--~----~------------~-------~--~----~
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