Skip to content

Commit bd00e2e

Browse files
committed
【fix】 fix ol 比例尺控件例子,变量命名错误问题 review by songym
1 parent 9b43552 commit bd00e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/openlayers/controler_scaleline.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
}),
3232
projection: 'EPSG:4326'
3333
});
34-
zoomControl = new ol.control.ScaleLine();
35-
map.addControl(zoomControl);
34+
var scaleControl = new ol.control.ScaleLine();
35+
map.addControl(scaleControl);
3636
map.addLayer(layer);
3737
</script>
3838
</body>

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