Users Archive

List Statistics

  • Total Threads: 1594
  • Total Posts: 2743
  #1  
08-09-2010 06:42 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #2  
08-09-2010 08:26 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #5  
08-09-2010 10:05 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #6  
08-09-2010 10:40 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #7  
08-09-2010 10:46 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #8  
09-09-2010 03:00 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #9  
09-09-2010 03:14 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #10  
09-09-2010 03:40 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> You probably want to call a map.setCenter on startup to set your initial
> extent (see your working Google example).
>

When I click the little globe I get a point to appear on my cite:arkansas
layer, but I am unable to even zoom in on this point and this layer should
be displaying many points...

I added the same from the Google example

map.setCenter(new OpenLayers.LonLat(-92.3809, 34.9513).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 7);

And the results are no different...I don't understand why it is not showing
me my cite:arkansas layer properly with this because this is a layer
generated by Geoserver from my PostGIS database after the data was ripped
from an official arkansas shapefile. As for the geotiff layer cite:NE12, no
matter how many times I click, nothing at all displays :-/

Thank you,

elshae

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514705.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #11  
09-09-2010 03:48 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> You probably want to call a map.setCenter on startup to set your initial
> extent (see your working Google example).
>

When I click the little globe I get a point to appear on my cite:arkansas
layer, but I am unable to even zoom in on this point and this layer should
be displaying many points...

I added the same from the Google example

map.setCenter(new OpenLayers.LonLat(-92.3809, 34.9513).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 7);

And the results are no different...I don't understand why it is not showing
me my cite:arkansas layer properly with this because this is a layer
generated by Geoserver from my PostGIS database after the data was ripped
from an official arkansas shapefile. As for the geotiff layer cite:NE12, no
matter how many times I click, nothing at all displays :-/

Thank you,

elshae

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514705.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hmmmm. OK- try viewing the source code from your GeoServer preview and grab
the var bounds and var options bits. Something like this:
var bounds = new OpenLayers.Bounds(
-79.762, 40.496,
-71.856, 45.016
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0308828125,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
Update your script with these bits and add the following after your
controls:map.zoomToExtent(bounds);

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514740.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #12  
09-09-2010 04:02 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> You probably want to call a map.setCenter on startup to set your initial
> extent (see your working Google example).
>

When I click the little globe I get a point to appear on my cite:arkansas
layer, but I am unable to even zoom in on this point and this layer should
be displaying many points...

I added the same from the Google example

map.setCenter(new OpenLayers.LonLat(-92.3809, 34.9513).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 7);

And the results are no different...I don't understand why it is not showing
me my cite:arkansas layer properly with this because this is a layer
generated by Geoserver from my PostGIS database after the data was ripped
from an official arkansas shapefile. As for the geotiff layer cite:NE12, no
matter how many times I click, nothing at all displays :-/

Thank you,

elshae

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514705.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hmmmm. OK- try viewing the source code from your GeoServer preview and grab
the var bounds and var options bits. Something like this:
var bounds = new OpenLayers.Bounds(
-79.762, 40.496,
-71.856, 45.016
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0308828125,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
Update your script with these bits and add the following after your
controls:map.zoomToExtent(bounds);

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514740.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> Hmmmm. OK- try viewing the source code from your GeoServer preview and
> grab the var bounds and var options bits. Something like this:
> var bounds = new OpenLayers.Bounds(
> -79.762, 40.496,
> -71.856, 45.016
> );
> var options = {
> controls: [],
> maxExtent: bounds,
> maxResolution: 0.0308828125,
> projection: "EPSG:4326",
> units: 'degrees'
> };
> map = new OpenLayers.Map('map', options);
> Update your script with these bits and add the following after your
> controls:map.zoomToExtent(bounds);
>

Your right that this does work, but the reason I was avoiding doing this was
because I want to be able to create a map with all different kinds of
layers. A PostGIS layer from my Geoserver, one from the Google API, a
GeoTIFF from my Geoserver and so on and so forth. When I grab the code from
Geoserver this way, it only sets the bounds of that one layer and then
nothing else displays properly. I have read the spherical mercator docs
which say to do this for my options variable:

var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};

but then this takes me back to the same issues of my Geoserver and any other
layers not working :(

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514798.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #13  
09-09-2010 04:29 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> You probably want to call a map.setCenter on startup to set your initial
> extent (see your working Google example).
>

When I click the little globe I get a point to appear on my cite:arkansas
layer, but I am unable to even zoom in on this point and this layer should
be displaying many points...

I added the same from the Google example

map.setCenter(new OpenLayers.LonLat(-92.3809, 34.9513).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 7);

And the results are no different...I don't understand why it is not showing
me my cite:arkansas layer properly with this because this is a layer
generated by Geoserver from my PostGIS database after the data was ripped
from an official arkansas shapefile. As for the geotiff layer cite:NE12, no
matter how many times I click, nothing at all displays :-/

Thank you,

elshae

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514705.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hmmmm. OK- try viewing the source code from your GeoServer preview and grab
the var bounds and var options bits. Something like this:
var bounds = new OpenLayers.Bounds(
-79.762, 40.496,
-71.856, 45.016
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0308828125,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
Update your script with these bits and add the following after your
controls:map.zoomToExtent(bounds);

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514740.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> Hmmmm. OK- try viewing the source code from your GeoServer preview and
> grab the var bounds and var options bits. Something like this:
> var bounds = new OpenLayers.Bounds(
> -79.762, 40.496,
> -71.856, 45.016
> );
> var options = {
> controls: [],
> maxExtent: bounds,
> maxResolution: 0.0308828125,
> projection: "EPSG:4326",
> units: 'degrees'
> };
> map = new OpenLayers.Map('map', options);
> Update your script with these bits and add the following after your
> controls:map.zoomToExtent(bounds);
>

Your right that this does work, but the reason I was avoiding doing this was
because I want to be able to create a map with all different kinds of
layers. A PostGIS layer from my Geoserver, one from the Google API, a
GeoTIFF from my Geoserver and so on and so forth. When I grab the code from
Geoserver this way, it only sets the bounds of that one layer and then
nothing else displays properly. I have read the spherical mercator docs
which say to do this for my options variable:

var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};

but then this takes me back to the same issues of my Geoserver and any other
layers not working :(

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514798.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. OK- so here's what you've got to do. Start with your working Google map.
This will set the Google layers as your base layers and the map will have a
sphericalMercator projection. Add your layers from geoserver as Overlay
layers and they should reproject from EPSG:4326 to EPSG:900913 on-the-fly.
You were trying to switch between 4326 and 900913 basemaps, which was why
nothing was working correctly. This should work:




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example







-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514913.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.

  #14  
09-09-2010 05:08 PM
Users member admin is online now
User
 

elshae,

Your OL code looks correct- are you seeing pink tiles by any chance? Check
to see if your layer is visible in GeoServer by clicking on "Layer Preview"
and previewing in OpenLayers. If this works, view the source code in the
layer preview and take a look at the URL parameters to make sure they are
correct in your JavaScript code.

BRYAN

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5511687.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hello Bryan,

Thanks for the quick reply. No I am not seeing pink tiles and yes I am able
to check the layer in the OpenLayers preview of Geoserver. I have also seen
the source code, which is


"DTD/xhtml1-strict.dtd">


OpenLayers map preview

href="http://localhost:8080/geoserver/openlayers/theme/default/style.css"/>



If that is the case, I have made the changes you have suggested to me and
still nothing :-/

Also, I do use firefox + firebug and do not get any errors from the
JavaScript...


Below is my script with the changes you suggested:

Thanks,

elshae




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512344.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Your updated code is throwing the following error in Firebug:

maxExtent is null
http://openlayers.org/dev/OpenLayers.js
Line 895

This error is typical when you haven't defined a base layer. In your case,
this is because you have not yet resolved issue #3 from my previous post.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512366.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> This error is typical when you haven't defined a base layer. In your
> case, this is because you have not yet resolved issue #3 from my previous
> post.
>

I must apologize, but I am not following...In both of my previous posts I
see that I have
map.addLayer(gsat);

yet you claim I have not resolved this issue :(
I am very sorry if I am over-looking something here...

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512452.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. I got it! Thank you very much. Now what I need to understand is why the
Geoserver layers weren't working...
Could it be that I should have been referencing the dev OL version there as
well?

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512461.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Yeah the answers that Bryan gave me helped me a great deal and now the Google
layers are working beautifully, however the Geoserver layers still do NOT
work...

I also tried switching to the /dev/OpenLayers.js in my script tags, but that
didn't cut it either.

Maybe I should mention that me cite:NE12 layer is a geotiff and my
cite:arkansas is point geometry. Geoserver shows the layers in the
OpenLayer preview just fine and I have viewed the source to check that I am
directing my script properly. but it's still a no go :-/ All help is
greatly appreciated! Below is my current script...

Thanks,

elshae



href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />





OpenLayers: Google Layer Example






--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514533.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. elshae wrote:
>
> Below is my current script...
>
Your script works fine when I substitute your localhost layers with my
geoeserver layers... Are you sure it's not working- or are you just not
zoomed into a visible region on your layers? Try clicking the little globe
on the pan/zoom control in the upper left-hand corner of your page and see
if your layers appear. You probably want to call a map.setCenter on startup
to set your initial extent (see your working Google example).

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514599.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> You probably want to call a map.setCenter on startup to set your initial
> extent (see your working Google example).
>

When I click the little globe I get a point to appear on my cite:arkansas
layer, but I am unable to even zoom in on this point and this layer should
be displaying many points...

I added the same from the Google example

map.setCenter(new OpenLayers.LonLat(-92.3809, 34.9513).transform(
new OpenLayers.Projection("EPSG:4326"),
map.getProjectionObject()
), 7);

And the results are no different...I don't understand why it is not showing
me my cite:arkansas layer properly with this because this is a layer
generated by Geoserver from my PostGIS database after the data was ripped
from an official arkansas shapefile. As for the geotiff layer cite:NE12, no
matter how many times I click, nothing at all displays :-/

Thank you,

elshae

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514705.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. Hmmmm. OK- try viewing the source code from your GeoServer preview and grab
the var bounds and var options bits. Something like this:
var bounds = new OpenLayers.Bounds(
-79.762, 40.496,
-71.856, 45.016
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0308828125,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);
Update your script with these bits and add the following after your
controls:map.zoomToExtent(bounds);

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514740.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. BMcBride wrote:
>
> Hmmmm. OK- try viewing the source code from your GeoServer preview and
> grab the var bounds and var options bits. Something like this:
> var bounds = new OpenLayers.Bounds(
> -79.762, 40.496,
> -71.856, 45.016
> );
> var options = {
> controls: [],
> maxExtent: bounds,
> maxResolution: 0.0308828125,
> projection: "EPSG:4326",
> units: 'degrees'
> };
> map = new OpenLayers.Map('map', options);
> Update your script with these bits and add the following after your
> controls:map.zoomToExtent(bounds);
>

Your right that this does work, but the reason I was avoiding doing this was
because I want to be able to create a map with all different kinds of
layers. A PostGIS layer from my Geoserver, one from the Google API, a
GeoTIFF from my Geoserver and so on and so forth. When I grab the code from
Geoserver this way, it only sets the bounds of that one layer and then
nothing else displays properly. I have read the spherical mercator docs
which say to do this for my options variable:

var options = {
projection: new OpenLayers.Projection("EPSG:900913"),
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34)
};

but then this takes me back to the same issues of my Geoserver and any other
layers not working :(

Thanks,

elshae
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514798.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. OK- so here's what you've got to do. Start with your working Google map.
This will set the Google layers as your base layers and the map will have a
sphericalMercator projection. Add your layers from geoserver as Overlay
layers and they should reproject from EPSG:4326 to EPSG:900913 on-the-fly.
You were trying to switch between 4326 and 900913 basemaps, which was why
nothing was working correctly. This should work:




href="http://openlayers.org/api/theme/default/style.css" type="text/css" />
href="http://openlayers.org/dev/examples/style.css" type="text/css" />






OpenLayers: Google Layer Example







-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5514913.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe. First of all, many thanks for your continuous help and speedy responses!
However, I hate to say that it still isn't working :(

When I use your code, Google Layers work a charm! I am very happy about
that!

However, Geoserver overlays are not showing. I really really don't
understand why either...
They work fine from OpenLayers previews and here is the code I get for each:

//Snippets of cite:NE12 preview:

var bounds = new OpenLayers.Bounds(
-1.49, -0.001,
-1.487, 0.001
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.00001171875,
projection: "EPSG:4326",
units: 'degrees'
};
map = new OpenLayers.Map('map', options);

// setup single tiled layer
untiled = new OpenLayers.Layer.WMS(
"NE12 - Untiled", "http://localhost:8080/geoserver/wms",
{
height: '341',
width: '512',
layers: 'cite:NE12',
styles: '',
srs: 'EPSG:4326',
format: format
},
{singleTile: true, ratio: 1}
);




//Snippets of cite:arkansas preview

var bounds = new OpenLayers.Bounds(
-94.616, 33.012,
-89.646, 36.508
);
var options = {
controls: [],
maxExtent: bounds,
maxResolution: 0.0194140625,
projection: "EPSG:900913",
units: 'm'
};
map = new OpenLayers.Map('map', options);


http://osgeo-org.1803224.n2.nabble.com/file/n5515116/example.html
example.html // setup single tiled layer
untiled = new OpenLayers.Layer.WMS(
"arkansas - Untiled",
"http://localhost:8080/geoserver/wms",
{
height: '360',
width: '512',
layers: 'cite:arkansas',
styles: '',
srs: 'EPSG:900913',
format: format
},
{singleTile: true, ratio: 1}
);

The weirder part is that your code works wonders with another layer I have
on Geoserver. This other layer was also grabbed from the PostGIS database,
but has MULTIPOLYGON data. I really need to be able to do this with all
kinds of layers, as my final product should include them all. Thanks, you
have helped me a great deal so far :)

elshae


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5515116.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
___________________________________________________

Posted on the Users mailing list. Go to http://openlayers.org/mailman/listinfo/users to subscribe.





NewsArc Lists  |  Culture Pages   |  Computing Archive  |  Media-Pages
Link to this page on your blog or website by copying the HTML code below and pasting it into your site: