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
Post a Comment