• Resolved klangfarbe

    (@klangfarbe)


    Hi,

    to allow a larger zoom level of the Google Street Map, it is necessary to add the attribute numZoomLevels and MAX_ZOOM_LEVEL to the OpenLayers JSON string:

    @@ -116,8 +116,8 @@ class Osm_OpenLayers
             {projection: "EPSG:3857",
              displayProjection: "EPSG:4326",
              layers: [new OpenLayers.Layer.Google("Google Streets",
    -                   {zoomMethod: null, animationEnabled: false}),
    +                   {zoomMethod: null, animationEnabled: false, numZoomLevels: 23, MAX_ZOOM_LEVEL: 22}),
                       new OpenLayers.Layer.Vector("OSM-plugin",{attribution:"<a href=\"http://mapicons.nicolasmollet.com/\">Icon</a> and <a href=\"http://wp-o
           ';
         }
         else if ($a_Type == 'GoogleHybrid'){

    https://wordpress.org/plugins/osm/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Allow larger zoom level for GoogleStreet’ is closed to new replies.