Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProgGis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Severin Steffensen Hjelseth
ProgGis
Commits
0189c584
Commit
0189c584
authored
1 year ago
by
Jakob Severin Steffensen Hjelseth
Browse files
Options
Downloads
Patches
Plain Diff
Mulig løsning
parent
886ab386
No related branches found
Branches containing commit
No related tags found
2 merge requests
!26
Resolve "Buffer"
,
!24
Resolve "Buffer"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.html
+4
-2
4 additions, 2 deletions
index.html
javascript/geoJSON.js
+4
-0
4 additions, 0 deletions
javascript/geoJSON.js
with
8 additions
and
2 deletions
index.html
+
4
−
2
View file @
0189c584
...
...
@@ -9,6 +9,8 @@
<!-- Leaflet css -->
<link
rel=
"stylesheet"
href=
"https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity=
"sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=
""
/>
<script
src=
'https://unpkg.com/@turf/turf@6/turf.min.js'
></script>
</head>
<body
class=
"standard"
>
...
...
@@ -172,7 +174,7 @@
<div
style=
"padding-right: 2vw;"
>
<svg
style=
"cursor: pointer; border: none; position: relative; color: orangered; z-index: 999;"
onclick=
"openBox('tutorialBox')"
xmlns=
"http://www.w3.org/2000/svg"
width=
"6vh"
height=
"6v"
fill=
"currentColor"
class=
"bi bi-question-circle-fill"
viewBox=
"0 0 16 16"
>
xmlns=
"http://www.w3.org/2000/svg"
width=
"6vh"
height=
"6v
h
"
fill=
"currentColor"
class=
"bi bi-question-circle-fill"
viewBox=
"0 0 16 16"
>
<path
d=
"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.496 6.033h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286a.237.237 0 0 0 .241.247zm2.325 6.443c.61 0 1.029-.394 1.029-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94 0 .533.425.927 1.01.927z"
/>
</svg>
</div>
...
...
@@ -193,7 +195,7 @@
<script
src=
"javascript/buffer.js"
></script>
<!-- Imported js -->
<script
src=
'https://unpkg.com/@turf/turf@6/turf.min.js'
></script>
<!--
<script src='https://unpkg.com/@turf/turf@6/turf.min.js'></script>
-->
<!-- <script src="https://unpkg.com/shpjs@latest/dist/shp.js"></script> -->
</body>
...
...
This diff is collapsed.
Click to expand it.
javascript/geoJSON.js
+
4
−
0
View file @
0189c584
...
...
@@ -80,6 +80,10 @@ var test2 = L.geoJSON();
test1
.
addData
(
U
);
test2
.
addData
(
TC
);
var
point
=
turf
.
point
([
10.403787
,
63.420031
]);
var
buffered
=
turf
.
buffer
(
point
,
500
,
{
units
:
"
meters
"
});
var
test3
=
L
.
geoJSON
(
buffered
).
addTo
(
map
);
// Det jeg skal ha med i ferdig versjon:
var
Arealdekke
=
L
.
geoJSON
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment