|
Hi folks,
I am testing ol 2.12 rc6 on my web app. I have a GWC wms layer, google hybrid + google sat. At start, GWC layer is not loading in the correct zoom layer. When zooming I get the blank image.
When checking with GWC I get this message. 400: X,Y values for the tile index were calculated to be {81.13292818954577, 104.17067323102172} which had to be rounded to {81, 104} and exceeds the threshold of 10%. Perhaps the client is using the wrong origin ?My map is in south america, so both x and y should be negative, shouldnt they ? I think this maybe cause by the Projection & SphericalMercator changes. Is this so ?
Thanks Ricardo
_______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
Hi,
Can you share a minimal example that shows the issue? Also, did this work with OpenLayers 2.11? Andreas. On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley <[hidden email]> wrote: > Hi folks, > > I am testing ol 2.12 rc6 on my web app. > I have a GWC wms layer, google hybrid + google sat. > > At start, GWC layer is not loading in the correct zoom layer. When zooming I > get the blank image. > When checking with GWC I get this message. > > 400: X,Y values for the tile index were calculated to be {81.13292818954577, > 104.17067323102172} which had to be rounded to {81, 104} and exceeds the > threshold of 10%. Perhaps the client is using the wrong origin ? > > My map is in south america, so both x and y should be negative, shouldnt > they ? > > I think this maybe cause by the Projection & SphericalMercator changes. > > Is this so ? > > > Thanks > > Ricardo > > _______________________________________________ > Users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
Do you mean screenshot or live example or just code ?
All I am doing is pointing to a different Openlayer js. So, yes with ol 2.11 worked fine. 2012/6/6 Andreas Hocevar <[hidden email]> Hi, _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
Code would be great. Especially showing your map and layer options.
Thanks, Andreas. On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley <[hidden email]> wrote: > Do you mean screenshot or live example or just code ? > > All I am doing is pointing to a different Openlayer js. So, yes with ol 2.11 > worked fine. > > > > 2012/6/6 Andreas Hocevar <[hidden email]> >> >> Hi, >> >> Can you share a minimal example that shows the issue? Also, did this >> work with OpenLayers 2.11? >> >> Andreas. >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley <[hidden email]> >> wrote: >> > Hi folks, >> > >> > I am testing ol 2.12 rc6 on my web app. >> > I have a GWC wms layer, google hybrid + google sat. >> > >> > At start, GWC layer is not loading in the correct zoom layer. When >> > zooming I >> > get the blank image. >> > When checking with GWC I get this message. >> > >> > 400: X,Y values for the tile index were calculated to be >> > {81.13292818954577, >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds the >> > threshold of 10%. Perhaps the client is using the wrong origin ? >> > >> > My map is in south america, so both x and y should be negative, shouldnt >> > they ? >> > >> > I think this maybe cause by the Projection & SphericalMercator changes. >> > >> > Is this so ? >> > >> > >> > Thanks >> > >> > Ricardo >> > >> > _______________________________________________ >> > Users mailing list >> > [hidden email] >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
this is my GWC layer
var lyr = new OpenLayers.Layer.WMS( "street", ["http://myAddress:8080/geowebcache/service/wms"],
{ layers: "Argentina",
format: 'image/png' }, {
isBaseLayer: true, visibility: false,
tileSize: new OpenLayers.Size(256,256), singleTile:false, tileLoadingDelay:0,
buffer: 2, transitionEffect:'resize',
minZoomLevel: 0, maxZoomLevel: 8 }
); * i change visibility later.
var ghyb = new OpenLayers.Layer.Google( "Híbrido", {
type: G_HYBRID_MAP, sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18
} );
2012/6/6 Andreas Hocevar <[hidden email]> Code would be great. Especially showing your map and layer options. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
sorry, this is my map.
var map = new OpenLayers.Map({ allOverlays: false,
theme: null, scales :[8735665,4367832,2183916,1091958,545979,272989,136494,68247,34123,17062,8531,4265],
projection: new OpenLayers.Projection('EPSG:900913'), displayProjection: new OpenLayers.Projection('EPSG:4326'),
restrictedExtent: new OpenLayers.Bounds(-9500000.0,-8200000.0,-4500000.0,-1600000.0), maxExtent: new OpenLayers.Bounds(-2.0E7,-2.0E7,2.0140799999999993E7,2.0140799999999993E7),
units: "m", controls: [ new OpenLayers.Control.Attribution(),
new OpenLayers.Control.KeyboardDefaults(), // new OpenLayers.Control.LayerSwitcher({'ascending':true}),
new OpenLayers.Control.Navigation({ dragPanOptions:{enableKinetic: true,documentDrag: true},
zoomWheelEnabled:true} ),
new OpenLayers.Control.PanZoomBar({zoomWorldIcon:true}) ] });
2012/6/6 Ricardo Bayley <[hidden email]> this is my GWC layer _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
In reply to this post by Ricardo Bayley
We also need your map configuration.
Thanks, Andreas. On Wed, Jun 6, 2012 at 4:41 PM, Ricardo Bayley <[hidden email]> wrote: > this is my GWC layer > > var lyr = new OpenLayers.Layer.WMS( > "street", ["http://myAddress:8080/geowebcache/service/wms"], > { > layers: "Argentina", > format: 'image/png' > }, > { > isBaseLayer: true, > visibility: false, > tileSize: new OpenLayers.Size(256,256), > singleTile:false, > tileLoadingDelay:0, > buffer: 2, > transitionEffect:'resize', > minZoomLevel: 0, > maxZoomLevel: 8 > } > ); > * i change visibility later. > > var ghyb = new OpenLayers.Layer.Google( > "Híbrido", > { > type: G_HYBRID_MAP, > sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 > } > ); > > If I dont load google layers, problem does not go away. > > > > 2012/6/6 Andreas Hocevar <[hidden email]> >> >> Code would be great. Especially showing your map and layer options. >> >> Thanks, >> Andreas. >> >> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley <[hidden email]> >> wrote: >> > Do you mean screenshot or live example or just code ? >> > >> > All I am doing is pointing to a different Openlayer js. So, yes with ol >> > 2.11 >> > worked fine. >> > >> > >> > >> > 2012/6/6 Andreas Hocevar <[hidden email]> >> >> >> >> Hi, >> >> >> >> Can you share a minimal example that shows the issue? Also, did this >> >> work with OpenLayers 2.11? >> >> >> >> Andreas. >> >> >> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley >> >> <[hidden email]> >> >> wrote: >> >> > Hi folks, >> >> > >> >> > I am testing ol 2.12 rc6 on my web app. >> >> > I have a GWC wms layer, google hybrid + google sat. >> >> > >> >> > At start, GWC layer is not loading in the correct zoom layer. When >> >> > zooming I >> >> > get the blank image. >> >> > When checking with GWC I get this message. >> >> > >> >> > 400: X,Y values for the tile index were calculated to be >> >> > {81.13292818954577, >> >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds >> >> > the >> >> > threshold of 10%. Perhaps the client is using the wrong origin ? >> >> > >> >> > My map is in south america, so both x and y should be negative, >> >> > shouldnt >> >> > they ? >> >> > >> >> > I think this maybe cause by the Projection & SphericalMercator >> >> > changes. >> >> > >> >> > Is this so ? >> >> > >> >> > >> >> > Thanks >> >> > >> >> > Ricardo >> >> > >> >> > _______________________________________________ >> >> > Users mailing list >> >> > [hidden email] >> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> >> > >> >> >> >> >> >> >> >> -- >> >> Andreas Hocevar >> >> OpenGeo - http://opengeo.org/ >> >> Expert service straight from the developers. >> > >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
I justtried this map config., and still not working.
var map = new OpenLayers.Map({ allOverlays: false,
theme: null, scales :[8735665,4367832,2183916,1091958,545979,272989,136494,68247,34123,17062,8531,4265],
projection: "EPSG:900913", // displayProjection: "EPSG:4326",
// projection: new OpenLayers.Projection('EPSG:900913'), // displayProjection: new OpenLayers.Projection('EPSG:4326'),
restrictedExtent: new OpenLayers.Bounds(-9500000.0,-8200000.0,-4500000.0,-1600000.0), // maxExtent: new OpenLayers.Bounds(-2.0E7,-2.0E7,2.0140799999999993E7,2.0140799999999993E7),
units: "m", controls: [ new OpenLayers.Control.Attribution(),
new OpenLayers.Control.KeyboardDefaults(), // new OpenLayers.Control.LayerSwitcher({'ascending':true}),
new OpenLayers.Control.Navigation({ dragPanOptions:{enableKinetic: true,documentDrag: true},
zoomWheelEnabled:true} ),
new OpenLayers.Control.PanZoomBar({zoomWorldIcon:true}) ] });
2012/6/6 Andreas Hocevar <[hidden email]> We also need your map configuration. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
In reply to this post by Andreas Hocevar-2
This is not a regression - your map configuration is incorrect. scales
is not an API property of the map. Move the scales definition to the GWC layer, and you should be fine. Andreas. On Wed, Jun 6, 2012 at 4:49 PM, Andreas Hocevar <[hidden email]> wrote: > We also need your map configuration. > > Thanks, > Andreas. > > On Wed, Jun 6, 2012 at 4:41 PM, Ricardo Bayley <[hidden email]> wrote: >> this is my GWC layer >> >> var lyr = new OpenLayers.Layer.WMS( >> "street", ["http://myAddress:8080/geowebcache/service/wms"], >> { >> layers: "Argentina", >> format: 'image/png' >> }, >> { >> isBaseLayer: true, >> visibility: false, >> tileSize: new OpenLayers.Size(256,256), >> singleTile:false, >> tileLoadingDelay:0, >> buffer: 2, >> transitionEffect:'resize', >> minZoomLevel: 0, >> maxZoomLevel: 8 >> } >> ); >> * i change visibility later. >> >> var ghyb = new OpenLayers.Layer.Google( >> "Híbrido", >> { >> type: G_HYBRID_MAP, >> sphericalMercator: true, minZoomLevel: 4, maxZoomLevel: 18 >> } >> ); >> >> If I dont load google layers, problem does not go away. >> >> >> >> 2012/6/6 Andreas Hocevar <[hidden email]> >>> >>> Code would be great. Especially showing your map and layer options. >>> >>> Thanks, >>> Andreas. >>> >>> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley <[hidden email]> >>> wrote: >>> > Do you mean screenshot or live example or just code ? >>> > >>> > All I am doing is pointing to a different Openlayer js. So, yes with ol >>> > 2.11 >>> > worked fine. >>> > >>> > >>> > >>> > 2012/6/6 Andreas Hocevar <[hidden email]> >>> >> >>> >> Hi, >>> >> >>> >> Can you share a minimal example that shows the issue? Also, did this >>> >> work with OpenLayers 2.11? >>> >> >>> >> Andreas. >>> >> >>> >> On Wed, Jun 6, 2012 at 3:17 PM, Ricardo Bayley >>> >> <[hidden email]> >>> >> wrote: >>> >> > Hi folks, >>> >> > >>> >> > I am testing ol 2.12 rc6 on my web app. >>> >> > I have a GWC wms layer, google hybrid + google sat. >>> >> > >>> >> > At start, GWC layer is not loading in the correct zoom layer. When >>> >> > zooming I >>> >> > get the blank image. >>> >> > When checking with GWC I get this message. >>> >> > >>> >> > 400: X,Y values for the tile index were calculated to be >>> >> > {81.13292818954577, >>> >> > 104.17067323102172} which had to be rounded to {81, 104} and exceeds >>> >> > the >>> >> > threshold of 10%. Perhaps the client is using the wrong origin ? >>> >> > >>> >> > My map is in south america, so both x and y should be negative, >>> >> > shouldnt >>> >> > they ? >>> >> > >>> >> > I think this maybe cause by the Projection & SphericalMercator >>> >> > changes. >>> >> > >>> >> > Is this so ? >>> >> > >>> >> > >>> >> > Thanks >>> >> > >>> >> > Ricardo >>> >> > >>> >> > _______________________________________________ >>> >> > Users mailing list >>> >> > [hidden email] >>> >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Andreas Hocevar >>> >> OpenGeo - http://opengeo.org/ >>> >> Expert service straight from the developers. >>> > >>> > >>> >>> >>> >>> -- >>> Andreas Hocevar >>> OpenGeo - http://opengeo.org/ >>> Expert service straight from the developers. >> >> > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
|
You are absolutely right Andreas.
shame on me ! don't know why i was setting scales there.
It's working great now. I will keep testing. Hopefully if I run into any of my bugs, I will fixed them first.
_______________________________________________ Users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/openlayers-users |
| Powered by Nabble | Edit this page |
