User:Lübeck/OpenLayers
Jump to navigation
Jump to search
diese Seite ist noch im Aufbau !!
Hinweis: Leichte Modifizierungen am Beispielcode können schon vorliegen!
mobile-Device mit jquery
Grundlage bildet das Example OpenLayers with jQuery Mobile - Stand September 2012 - OL2.12
Koordinate
- Koordinaten für Permalink werden falsch angezeigt
- Zoomen für Adressen über die URL werden fehlerhaft angezeigt.
// create map
map = new OpenLayers.Map({
div: "map",
theme: null,
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
numZoomLevels: 18,
controls: [
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.Permalink(),
new OpenLayers.Control.TouchNavigation({
dragPanOptions: {
enableKinetic: true
}
}),
geolocate
],
Die Zeile
displayProjection: new OpenLayers.Projection("EPSG:4326"),
wurde ergänzt.
Verwendung von nominatim als Ersatz für geonames.org
folgt !