Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ICT4iCity
data_workflow
Commits
cf0774ee
Commit
cf0774ee
authored
Jul 06, 2023
by
Joe TS Dell
Browse files
update
parent
892435f7
Pipeline
#8482
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/bbox-finder.html
View file @
cf0774ee
...
...
@@ -80,6 +80,7 @@
<img
src=
"joeicon.png"
alt=
""
width=
"20px"
>
BBOX Finder
<i
class=
"bi bi-bounding-box"
></i></b>
<br>
<button
class=
"btn btn-secondary btn-sm"
onclick=
"startDraw()"
>
DRAW
</button><br>
<span
id=
"calculated_area"
>
[Hint: Draw a bbox using tool on the right-bottom menu.]
</span>
</p>
</div>
...
...
@@ -112,7 +113,10 @@
var
drawnItems
=
new
L
.
FeatureGroup
();
map
.
addLayer
(
drawnItems
);
// https://stackoverflow.com/questions/15775103/leaflet-draw-mapping-how-to-initiate-the-draw-function-without-toolbar
startDraw
=
function
()
{
new
L
.
Draw
.
Rectangle
(
map
,
drawControl
.
options
.
rectangle
).
enable
()
}
// Set the title to show on the polygon button
L
.
drawLocal
.
draw
.
toolbar
.
buttons
.
polygon
=
'
Draw a polygon!
'
;
L
.
Control
.
geocoder
().
addTo
(
map
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment