Skip to content

Commit

Permalink
Fix maps wms zoom limitation
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
  • Loading branch information
junqiu-lei committed Jul 18, 2022
1 parent 6dfe116 commit 9678a4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function BaseMapsVisualizationProvider() {

try {
if (this._wmsConfigured()) {
if (WMS_MINZOOM > this._opensearchDashboardsMap.getMaxZoomLevel()) {
if (WMS_MAXZOOM > this._opensearchDashboardsMap.getMaxZoomLevel()) {
this._opensearchDashboardsMap.setMinZoom(WMS_MINZOOM);
this._opensearchDashboardsMap.setMaxZoom(WMS_MAXZOOM);
}
Expand Down

0 comments on commit 9678a4b

Please sign in to comment.