> 1) With a Google map, I can set the Bounds of a map easily. When I try > to do the same with an OpenStreetMap, my Bounds are ignored and I get a > thumbnail of the world map. What could be going on here?
There is a tutorial somewhere on the OpenStreetMap Wiki. The boundaries have to be computed using some magic (but deterministic) values that are given in that example. Unfortunately I cannot find the reference now. Here is a link to an example in German: http://www.cognitiones.de/doku.php/osm_openlayers_test It says that the magic number 20037508.34 is related to the conversion between tile numbers and coordinates. Unlike in this example the attribution link should be enabled in the display. The OSM-Javascript files provide it already but it has to be enabled: map.addControl(new OpenLayers.Control.Attribution()); Regards, Frank --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
