leaflet - The data is repeated on each tile -


i have few wms layers generated geoserver (data postgis), in leaflet i'm creating layers using both l.tilelayer.wms , l.tilelayer. in both cases have same result - there same data on each tile. data repeated on each tile. data not on correct coordinates. hard explain, can @ enclosed printscreen here.

my code this:

var sondy = new l.tilelayer.wms('http://localhost:8080/geoserver/archeo/wms?bbox=-556182.167458477,-1031638.88186088,-556085.240458477,-1031526.68186088&width=442&height=512', {    version: '1.1.0',   layers: 'archeo:sondy_5514>4326',   format: 'image/svg+xml',   crs: l.crs.epsg4326,   maxzoom: 21,   transparent: true,   attribution: 'map data © archeo'   });  var lokalita = new l.tilelayer('http://localhost:8080/geoserver/archeo/wms?service=wms&version=1.1.0&request=getmap&layers=archeo:lokalita%3e4326&styles=&bbox=17.001919195719633,50.3879944052749,17.00420450498308,50.38958109165828&width=512&height=355&srs=epsg:4326&format=image%2fsvg%2bxml', {    layer: 'lokalita',   opacity: 1,   maxzoom: 21,   transparent: true,   attribution: 'map data © archeo'   }); 

do have idea problem? in geoserver or leaflet code?

thanks in advance, markéta

ciao, not expert leaflet me looks something's wrong in how initialize layers (for sure wms one, why put bbox in source url??):

check link: http://leafletjs.com/reference.html#tilelayer-wms


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -