[OpenLayers-Users] HELP! OL 2.13: Google v3 and other layers not zooming "together"

Andreas Hocevar ahocevar at opengeo.org
Wed Aug 7 06:41:03 PDT 2013


Ok, faster to create a pull request that brings Google animation in sync
with OpenLayers animation than to explain that the zoomMethod option
belongs to the map and not to the Navigation control. See
https://github.com/openlayers/openlayers/pull/1074.

Andreas.


On Wed, Aug 7, 2013 at 2:30 PM, eflow <Jonathan.Wolfe at noaa.gov> wrote:

> I use those like this:
>
> var map = new OpenLayers.Map('map', {
>       controls : [new OpenLayers.Control.Navigation( {
>              zoomMethod : null
>       }), graticuleCtl1],
>       projection : new OpenLayers.Projection("EPSG:900913"),
>       displayProjection : new OpenLayers.Projection("EPSG:4326"),
>       numZoomLevels : 20
> });
>
> var googleTerrain = new OpenLayers.Layer.Google("Terrain Map",
>       {
>         type : google.maps.MapTypeId.TERRAIN,
>         'sphericalMercator' : true,
>         animationEnabled: false
>       });
>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/HELP-OL-2-13-Google-v3-and-other-layers-not-zooming-together-tp5060658p5071290.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130807/57b3b215/attachment.html>


More information about the Users mailing list