MCPcopy
hub / github.com/django/django / enableDrawing

Method enableDrawing

django/contrib/gis/static/gis/js/OLMapWidget.js:214–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 }
213
214 enableDrawing() {
215 this.interactions.draw.setActive(true);
216 if (this.typeChoices) {
217 // Show geometry type icons
218 const divs = document.getElementsByClassName("switch-type");
219 for (let i = 0; i !== divs.length; i++) {
220 divs[i].style.visibility = "visible";
221 }
222 }
223 }
224
225 disableDrawing() {
226 if (this.interactions.draw) {

Callers 1

clearFeaturesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected