Tag Info

Hot answers tagged

2

That will work, but you'll be making dynamic (export) requests to the tiled service rather than using the tiled images. This should also work: var layer; layer = new ArcGISTiledMapServiceLayer("URL", {"opacity": 0.5}); map.addLayer(layer); See this jsfiddle for an example.


2

Luckily you do not need to trust in what you read from the web but you can make a test with your own data. It is not as simple as "PNG tiles are much larger than JPEG, but have better quality". That is mostly true with aerial and satellite images which can be compressed effectively with lossy jpeg method. PNG is lossless and quality is thus perfect but the ...


1

If you are creating your own cache: Increase the jpeg compression ratio when generating the cache, the default is 75. Or Change the jpeg format to png32. This will result in a larger cache and bigger tiles but it will also improve quality If you are using an ArcGIS online tiled map service Make sure that your application only allows zooming to the ...


1

Your map file says you are using epsg:4326 as a projection. Leaflet map uses epsg:3857 as a default (https://github.com/Leaflet/Leaflet/blob/master/src/map/Map.js) you could try passing following option when you create your L.Map object var map = new L.Map('map', { crs: L.CRS.EPSG4326 }); Anyway, your problem is around projections


1

You should be able to manage this with parameter filters pretty much the same way as with the STYLE parameter. Add a StringParameterFilter for the SLD parameter, give it the URLs for the external styles, and away you go.


1

I suggest to use EPSG:3857 as CRS for the raster during the tiling process. EPSG:900913 is not included in current GDAL and QGIS anymore, thus the special spherical mercator treatment is not applied. The proj definition for EPSG:3857 is +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs ...



Only top voted, non community-wiki answers of a minimum length are eligible