I use the example tiger-ny layer from geoserver with leaflet like this:
var map = L.map('map').setView([62.92578, 32.08523], 13); L.tileLayer('http://localhost:8080/geoserver/gwc/service/tms/1.0.0/tiger-ny/{z}/{x}/{y}.png', { maxZoom: 18, tms: true, crs: L.CRS.EPSG4326, attribution: false}).addTo(map);I can see the Map and all works but not with the correct latlng.The coordinates latlng are completely different.This map shows basically the central park in new york and the correct latlng should be (40.78546, -73.96583) but in this geoserver tms the central park is at (62.92578, 32.08523).
Leaflet with geoserver tms should show the location with the correct latlng, like the central park at (40.78546, -73.96583) and not at (62.92578, 32.08523).
I don't understand why the coordinates are wrong when i use the tms of the geoserver.
Maybe someone can help me out?
Thanks
أكثر...
var map = L.map('map').setView([62.92578, 32.08523], 13); L.tileLayer('http://localhost:8080/geoserver/gwc/service/tms/1.0.0/tiger-ny/{z}/{x}/{y}.png', { maxZoom: 18, tms: true, crs: L.CRS.EPSG4326, attribution: false}).addTo(map);I can see the Map and all works but not with the correct latlng.The coordinates latlng are completely different.This map shows basically the central park in new york and the correct latlng should be (40.78546, -73.96583) but in this geoserver tms the central park is at (62.92578, 32.08523).
Leaflet with geoserver tms should show the location with the correct latlng, like the central park at (40.78546, -73.96583) and not at (62.92578, 32.08523).
I don't understand why the coordinates are wrong when i use the tms of the geoserver.
Maybe someone can help me out?
Thanks
أكثر...