[OpenLayers-Users] maximum ZoomLevel for google maps

Alexandre Dube adube at mapgears.com
Tue Nov 25 08:36:48 EST 2008


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,1000],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-tp1574304p1574304.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




More information about the Users mailing list