[OpenLayers-Users] Sharing layers between maps

Greg Ederer greg at ergonosis.com
Mon Oct 13 01:50:37 EDT 2008


Hi,

Good to know.

Thanks,

Greg

Eric Lemoine wrote:
> Hi.
>
> Layer instances are bound to a Map instance, so you can't add one
> layer to multiple maps. However, if you use tile layers, the tiles can
> be cached by the browser.
>
> Eric
>
> 2008/10/13, Greg Ederer <greg at ergonosis.com>:
>   
>> Hi,
>>
>> Are there any caveats about having multiple maps on the same page that
>> share a number of layer instances?  I have, e.g., a national and coastal
>> boundaries layer, and a sub-national administrative units layer.  I'll
>> have n maps displayed on the page, and they all use these two layers.
>> Seems wasteful to download them again for each map.
>>
>> Thanks!
>>
>> Greg
>>
>> --
>> | E R G O N O S I S
>> | Greg Ederer
>> | Lead Developer
>> | greg at ergonosis.com
>> | 360.774.6848
>> |
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>     


-- 
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg at ergonosis.com
| 360.774.6848
|




More information about the Users mailing list