Please remember to CC the list.
The map.zoomToExtent() is optional, not a big deal since you are mapping
Pakistan (big country).
If you have specified both the resolutions and the maxExtent and it's
not working then there is something else in your client that is
overriding these settings. (It's asking for a resolution of 2
degrees/pixel, even though you've configured the lowest resolution to be
0.703125.)
Could be a minResolution, or OpenLayers sometimes derives properties
from the "base layer", which can be the first layer added unless it has
baseLayer: false set.
-Arne
On 11/8/10 9:38 AM, Sila Khan wrote:
hi
http://localhost:8080/geoserver/gwc/demo here at this page i found the
bounds or resolutions are same as in my openlayers code
but thing that here i found which i didnt add
map.zoomToExtent(new OpenLayers.Bounds(60.879,23.695,79.307,37.089));
shd i have to define this mapextent as well??
n other is the same that i defined in code which is like dis
resolutions: [0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125,
0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125,
0.001373291015625, 6.866455078125E-4, 3.4332275390625E-4, 1.71661376953125E-4,
8.58306884765625E-5, 4.291534423828125E-5, 2.1457672119140625E-5,
1.0728836059570312E-5, 5.364418029785156E-6, 2.682209014892578E-6,
1.341104507446289E-6, 6.705522537231445E-7, 3.3527612686157227E-7,
1.6763806343078613E-7, 8.381903171539307E-8, 4.190951585769653E-8,
2.0954757928848267E-8],
projection: new OpenLayers.Projection('EPSG:4326'),
maxExtent: new OpenLayers.Bounds(-180.0,-90.0,180.0,90.0),
On Mon, Nov 8, 2010 at 11:55 AM, Arne Kepp <[email protected]
<mailto:[email protected]>> wrote:
See the EPSG:4326 section on
http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation
or go to
http://localhost:8080/geoserver/gwc/demo
and view the source of the automatically generated OpenLayers client.
-Arne
On 11/8/10 7:49 AM, Sila Khan wrote:
i got the following error from the logfiles,plz let me
know that wot type of set of scale or DPI setting it z
expecting from client,as i set all resolution n mapextent
or DPI settiing as in its GWC layer,then y this exception
z occuring,whats possibilities behind it???or which set
of scale i should use??
400: Requested horizontal resolution: 2.0 , best match:
0.703125 exceeds 10% threshold. Perhaps the client is
configured with an incorrect set of scales (resolutions),
or the DPI setting is off compared to the one in GWC ?
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users