http://wiki.openstreetmap.org/wiki/OpenLayers_osm_file_example i got a problem about the example in the web pag of that link.
this part of code seems does not work, i have put the html file alongside the osm file in an apache server, but the result did not change, it did not show the area which is included in the osm file. I did not how this happened,i need your help. |
Note: This is not strictly OpenStreetMap related but rather a Openlayers question and therefore offtopic here. Looking at the example in the wiki the display is always centered at latitude 51.950, longitude 7.613 rather then the center of the osm file you provide. You can either hardcode the "correct" center or center "dynamically" using the answered 24 Mar '11, 07:57 petschge |