Hi Al,

You might get a better response on the openlayers forum. But I would just
make a request like the one below and view the source of the page. That
will give you the full ol configuration. In GeoServer this is generated
with a template which you can find here:

https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/resources/org/geoserver/wms/map/OpenLayersMapTemplate.ftl

Hope that helps.

-Justin

On Wed, Oct 17, 2012 at 7:29 AM, Al Vigil <albert.vi...@gmail.com> wrote:

> **
>
> I am having trouble displaying a shp-file map on a web browser using
> OpenLayers.  The map displays fine within GeoServer using the demo
> viewer.and the following script:******
>
> ** **
>
>
> http://localhost:8088/geoserver/wms?bbox=-88,11,-84,15&styles=nicbase,l4Roads&Format=application/openlayers&request=GetMap&layers=Nicaragua:nicbase,Nicaragua:l4Roads&width=800&height=600&srs=EPSG:4326
> ****
>
> ** **
>
> I am a newbie on learning how to use GeoServer and to make it a little
> more challenging using the Windows install package without the benefit of
> having the souce code.****
>
> ** **
>
> I ran file ol_demo.html that I found in a subdirectory of the data_dir and
> compared it to the Request WMS_get_map_OpenLayres.url in the Demo viewer.
> Both use the same sample file, topp:states.  But the Demo viewer works
> fine in Geoserver, whereas the ol-demo.html does not display any map, only
> decorations.  The usBounds appear to use the wrong set of numbers, for
> one:****
>
> ** **
>
> var usBounds = new OpenLayers.Bounds(****
>
>                 -14392000, 2436200, -7279500, 6594375****
>
>             );****
>
> ** **
>
> I am able to display my map by using some of the code in this file, but I
> had to change the numbers above to -88,11,-84,15, the coordinates of my map
> bounding box. Currently my map displays, but without controls (the zoom bar
> briefly appears, then disappears) and I cannot zoom in below scale 14K.***
> *
>
> ** **
>
> Bottom line, I would like to find the OpenLayers code used by the Request
> WMS_get_map_OpenLayres.url Demo request.  Can anybody out there help me?**
> **
>
> ** **
>
> Thanks,****
>
> ** **
>
> Al Vigil****
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to