[OpenLayers-Users] maximum ZoomLevel for google maps

Arnd Wippermann arnd.wippermann at web.de
Tue Nov 25 12:32:12 EST 2008


Perhaps this helps:
http://www.nabble.com/How-to-change-style-'select'--in-OL-2.6-td16515740.htm
l
 
... but is there a reason that OL sticks to only 19 
zoomlevels for the Google layer? Google have 22 zoomlevels and especially 
for where I come from (Wuppertal), it's possible to get images for 
zoomlevels > 19. I use this patch to get all levels: 

OpenLayers.Layer.Google.prototype.RESOLUTIONS = 
[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.0219726562

5,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.000686

6455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.

0000429153442382812,0.0000214576721191406,0.0000107288360595703,0.0000053644

1802978516,0.00000268220901489258,0.00000134110450744629,6.70552253723145e-7

,3.35276126861572e-7]; 
OpenLayers.Layer.Google.prototype.MAX_ZOOM_LEVEL = 22; 


Mit freundlichen Grüssen 

Arnd Wippermann 



-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Rodolfo Moreno
Gesendet: Dienstag, 25. November 2008 16:49
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] maximum ZoomLevel for google maps


I Reena Alexandre is right. I have tested your suggestion and it has not
fixed my issue.
maybe to be a constraint of google maps?


Alexandre Dube wrote:
> 
> Google layers already have fixed resolutions, so using fixed scales 
> will not help in this case.
> 
> Alexandre
> 
> S.Reena wrote:
>> Hi Rodolfo,
>>
>> I am not using google maps as base , I have made my own base 
>> layer..but for your case playing with the scale would serve the 
>> purpose
>>
>> I did like this ,
>>
>>   map = new OpenLayers.Map('map',{ scales:
>>
[5000000,2000000,1000000,500000,200000,100000,50000,20000,10000,5000,2000,10
00],numZoomLevels:
>> 12, maxResolution: "auto",projection: "EPSG:4326", controls: [] });
>>
>>
>> Reena
>>
>>
>> Rodolfo Moreno wrote:
>>   
>>> Hi all,
>>> I am using openlayers for showing my mapguide layers and google maps 
>>> as base layer.
>>> my problem is that the "zoom in" this limited until a certain scale. 
>>> In my case the maximum scale that I can achieve is 1:18k (this is 
>>> what the map shows).
>>> I did a comparison with the own google maps GUI
>>> (http://maps.google.com/)
>>> and I have seen that to my sample application lack it 4 zoom levels 
>>> in order to achieve the maximum scale.
>>> So I was reviewing the openlayers documentation and I found this 
>>> link(http://trac.openlayers.org/wiki/SettingZoomLevels).
>>>
>>> I did some change in my code like this: 
>>>
>>> var satellite = new OpenLayers.Layer.Google( 
>>>                 "Google Satellite" , {type: G_NORMAL_MAP},  {
>>> minZoomLevel:
>>> 0, maxZoomLevel: 30} 
>>>             );
>>>
>>> but even it doesn't work as I want. 
>>>
>>> I appreciate all idea
>>>
>>> Regards
>>>
>>> -----
>>> Rodolfo Moreno
>>> CivilEng
>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/maximum-ZoomLevel-for-google-maps-tp1574304p157
>>> 4304.html Sent from the OpenLayers Users mailing list archive at 
>>> Nabble.com.
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>>     
>>
>>   
> 
> 
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 


-----
Rodolfo Moreno
CivilEng

--
View this message in context:
http://n2.nabble.com/maximum-ZoomLevel-for-google-maps-tp1574304p1576820.htm
l
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list