openlayers - How do I reset an extent of a layer to default? -


my map has multiple regions. if region selected restrict avalaible layers extent of selected region setting "extent" property so: alllayers.foreach(l => l.setextent(extent)). whenever unselect region want see whole map again. how reset extent of layers extent changed before?

figured out. alllayers.foreach(l => l.setextent(undefined)). had pass undefined typescript doesn't yell @ me, empty braces supposed work too.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -