Skip to content

Commit 3b367cf

Browse files
【fix】 修复 isvj-3603 固定比例尺失效 review by songym
1 parent d4df714 commit 3b367cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ export class WebMap extends Observable {
718718
if (minZoom > maxZoom) {
719719
[minZoom, maxZoom] = [maxZoom, minZoom];
720720
}
721-
if (minZoom !== 0 && maxZoom !== visibleScales.length - 1) {
721+
if (minZoom !== 0 || maxZoom !== visibleScales.length - 1) {
722722
this.map.setView(
723723
new View(
724724
Object.assign({}, this.map.getView().options_, {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy