I am using geoserver 2.3.5,openlayers 2.1.3 . I am trying to use tms layer for displaying map. Initialy am getting map in openlayers, but the next zoom levels is not rendering. I tried with WMS layer for displaying map it works in all zoom levels,
This is my Code:
function init(){ var bounds = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) var mapOptions = { restrictedExtent: bounds, units: "degrees", controls: [] }; map = new OpenLayers.Map('map_area', mapOptions); tiled = new OpenLayers.Layer.XYZ( "Sample Map", "http://localhost:8081/geoserver/gwc/service/tms/1.0.0/jammu:states/${z}/${x}/${y}.png", { transitionEffect: 'resize', tileSize: new OpenLayers.Size(256, 256), isBaseLayer: false }); map.addLayer(tiled); } ${z}/${x}/${y}.png i have doubt in this parameters which i used to generate tile for the map.
أكثر...
This is my Code:
function init(){ var bounds = new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34) var mapOptions = { restrictedExtent: bounds, units: "degrees", controls: [] }; map = new OpenLayers.Map('map_area', mapOptions); tiled = new OpenLayers.Layer.XYZ( "Sample Map", "http://localhost:8081/geoserver/gwc/service/tms/1.0.0/jammu:states/${z}/${x}/${y}.png", { transitionEffect: 'resize', tileSize: new OpenLayers.Size(256, 256), isBaseLayer: false }); map.addLayer(tiled); } ${z}/${x}/${y}.png i have doubt in this parameters which i used to generate tile for the map.
أكثر...