[OpenLayers-Users] Testing ol 2.12 rc6

Ricardo Bayley ricardo.bayley at gmail.com
Wed Jun 6 07:47:14 PDT 2012


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 <ricardo.bayley at gmail.com>

> 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 <ahocevar at opengeo.org>
>
>> Code would be great. Especially showing your map and layer options.
>>
>> Thanks,
>> Andreas.
>>
>> On Wed, Jun 6, 2012 at 4:14 PM, Ricardo Bayley <ricardo.bayley at gmail.com>
>> 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 <ahocevar at opengeo.org>
>> >>
>> >> 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 <
>> ricardo.bayley at gmail.com>
>> >> 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
>> >> > Users at lists.osgeo.org
>> >> > 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.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120606/81549eb5/attachment.html>


More information about the Users mailing list