[OpenLayers-Users] keep map displayed when loading on zoom

Adrian Popa adrian_gh.popa at romtelecom.ro
Thu Sep 3 04:34:23 EDT 2009


Thanks Andreas,

I've tested it on Mapserver layers, and it works great!

However, I  tried to add it to:
 - OpenStreetMaps (OpenLayers.Layer.OSM.Osmarender),
 - Google maps (OpenLayers.Layer.Google( 'Google Streets', 
{'sphericalMercator': true, transitionEffect: 'resize'} )
 - and yahoo maps (OpenLayers.Layer.Yahoo( 'Yahoo Street', 
{sphericalMercator:true, transitionEffect: 'resize'}))
... and it doesn't work for these ones.

Is it supposed to work even for them?

Thanks

Andreas Hocevar wrote:
> Adrian Popa wrote:
>   
>> Sorry for butting in, but is this effect supposed to work also when
>> the layer has singleTile='true'? (One image from mapserver)
>>     
>
> Definitely. See the example.
>
> Regards,
> Andreas.
>
>   
>> Thanks
>>
>> Andreas Hocevar wrote:
>>     
>>> Florent Gravin wrote:
>>>   
>>>       
>>>> Is there a way to keep the map displayed when you zoom (with bad
>>>> resolution) until the new tiles with a better resolution are loaded.
>>>> Like for exemple in Google Map where you NEVER have white map because
>>>> data are loading..
>>>>     
>>>>         
>>> This can be done in OL too. All you need is to pass
>>>
>>>     transitionEffect: "resize"
>>>
>>> to the layer's options.
>>>
>>> To see it in action and as a starting point for your own map, have a
>>> look at http://www.openlayers.org/dev/examples/transition.html
>>>
>>> Regards,
>>> Andreas.
>>>
>>>
>>>   
>>>       
>> -- 
>> --- 
>> Adrian Popa
>> NOC Division
>> Network Engineer
>> Divizia Centrul National de Operare Retea
>> Departament Transport IP & Metro
>> Compartiment IP Core & Backbone
>> Phone: +40 21 400 3099
>>   
>>     
>
>
>   


-- 
--- 
Adrian Popa
NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP & Metro
Compartiment IP Core & Backbone
Phone: +40 21 400 3099

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090903/322570e1/attachment.html


More information about the Users mailing list