Thanks for the suggestion, it is quite large, but displays fine on it's own.
I am going to investigate the utility you mentioned to see if it helps with
speed. I substituted another raster and that one is working fine, so I think
my problem is that the porjection that geoserver is using for my
The JPEG2000 raster file I was using did not have a .prj associated with it
(just a .j2w, .jp2.xml and a .jp2.aux.xml), so geoserver was assigning an
incorrect projection. I copied a .prj from another shapefile that used the
correct projection for the raster and now it works! Thank you to
GeoGEOrge wrote:
I was able to add my layer and have it show on top of Google streetmap-in
the right location. But I am still unable to get it to show on top of my
EPSG:4326 raster layer. Would a layer with EPSG:4326 require the
sphericalMercator: true statement?
I don't think you need
Do you have an example of code showing OpenLayers sending a request to return
each layer in the same projection used by a map? I tried adding
displayProjection with EPSG:4326 to both, but that didn't work
--
View this message in context:
Thank, you, Thank You, Thank you, for pointing out that I had the transparent
declaration in the wrong place! I have been struggling with that for some
time.
--
View this message in context:
http://n2.nabble.com/show-two-layers-with-different-projections-tp4717734p4738657.html
Sent from the
Glad to help! I've struggled for weeks on issues that end up being simple
Javacript syntax errors. Sometimes it just takes another pair of eyes
looking at your code!
--
View this message in context:
http://n2.nabble.com/show-two-layers-with-different-projections-tp4717734p4738686.html
Sent
I was able to add my layer and have it show on top of Google streetmap-in the
right location. But I am still unable to get it to show on top of my
EPSG:4326 raster layer. Would a layer with EPSG:4326 require the
sphericalMercator: true statement?
--
View this message in context:
I am trying to use openlayers to display a raster with projection EPSG:4326
and a vector layer with projection EPSG:2249.
I am able to display each separately, but I cannot get the vectors to show
on top of the raster.
both are WMS layers served by GeoServer 2.0.0
var options = {
When a server such as Geoserver or Mapserver can support more than one
projection, OpenLayers needs to send a request to return each layer in the same
projection used by your map, otherwise the server may not know to send it in
the correct projection, in which case the data will not line up in
Ummm. I wonder what happens if you try the following:
Try putting your data over Google. (By the way, this will only work on a
local machine unless you have an API key which is free, but I didn't include
it in my example:
script
Thank you for the suggestion and the code to try.
I get the similar results:
I get the google street map with a big white square on it that extends from
the north pole to the south pole.
If I change it so both google and polygon are baselayers, I can zoom in on
the google streetmap to the right
11 matches
Mail list logo