5
ズームレベルに応じてベクターレイヤーのフィーチャーを表示する方法は?OpenLayersの表示機能特定のズームレベルのベクターのみ
例:ズームを2回行った場合にのみ、ベクターレイヤーのフィーチャを表示したいとします。
ありがとうございます!
ズームレベルに応じてベクターレイヤーのフィーチャーを表示する方法は?OpenLayersの表示機能特定のズームレベルのベクターのみ
例:ズームを2回行った場合にのみ、ベクターレイヤーのフィーチャを表示したいとします。
ありがとうございます!
はminScaleとmaxScaleを使用することにより、このdocumentation
を見てみましょう。
minResolutionとmaxResolutionも使用できますが、スケールを使用する方が優れているようです。
minScale - float -- the minimum scale value at which the layer should display
maxScale - float -- the maximum scale value at which the layer should display
maxResolution - float -- the maximum resolution value at which the layer should display
minResolution - float -- the minimum resolution value at which the layer should display