Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MapLibre
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
Container 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
Boris Mericskay
MapLibre
Commits
82a13249
Commit
82a13249
authored
3 years ago
by
Boris Mericskay
Browse files
Options
Downloads
Patches
Plain Diff
Update GraduatedCircles.html
parent
6efa4557
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GraduatedCircles.html
+11
-25
11 additions, 25 deletions
GraduatedCircles.html
with
11 additions
and
25 deletions
GraduatedCircles.html
+
11
−
25
View file @
82a13249
...
...
@@ -7,10 +7,6 @@
<style>
#map
{
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;}
</style>
</head>
...
...
@@ -19,22 +15,21 @@
<div
id=
"map"
></div>
<script>
//Appel et
configuration
de la carte
// Map
configuration
var
map
=
new
mapboxgl
.
Map
({
container
:
'
map
'
,
style
:
'
https://geoserveis.icgc.cat/contextmaps/positron.json
'
,
//
Fond de carte
style
:
'
https://geoserveis.icgc.cat/contextmaps/positron.json
'
,
//
basemap
zoom
:
11.7
,
// Zoom
center
:
[
2.335
,
48.854
],
//
Centrage car
te
pitch
:
10
,
// Inclinaison
carte
bearing
:
0
,
// Rotation
carte
center
:
[
2.335
,
48.854
],
//
Map cen
te
r
pitch
:
10
,
// Inclinaison
bearing
:
0
,
// Rotation
minZoom
:
11.7
});
// A
jout des données
// A
dd date (Geojson)
map
.
on
(
'
load
'
,
function
()
{
...
...
@@ -54,7 +49,6 @@ map.on('load', function () {
});
// Add bike stations
map
.
addSource
(
'
Stations
'
,
{
...
...
@@ -71,20 +65,15 @@ map.on('load', function () {
'
circle-radius
'
:
{
property
:
'
capacity
'
,
type
:
'
exponential
'
,
stops
:
[
[
0
,
0
],
[
95
,
20
]
]
},
stops
:
[[
0
,
0
],
[
95
,
20
]]},
'
circle-color
'
:
'
#0074D9
'
}}
);
});
//Interactivit
é HOVER
//
Interactivit
y configuration (popup)
var
popup
=
new
mapboxgl
.
Popup
({
className
:
"
Mypopup
"
,
...
...
@@ -108,16 +97,13 @@ map.on('mousemove', function(e) {
});
// Ajout controle de navigation et echelle
// Add navigation control and scale
map
.
addControl
(
new
mapboxgl
.
NavigationControl
({
position
:
'
top-left
'
}));
map
.
addControl
(
new
mapboxgl
.
ScaleControl
({
position
:
'
bottom-right
'
}));
</script>
</body>
</html>
\ No newline at end of file
</html>
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