Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
0869d678
Commit
0869d678
authored
Feb 05, 2020
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update locations
parent
00a29332
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
48 deletions
+48
-48
od.geojson
public/centropais/data/od.geojson
+24
-24
viajes_ocupados_desde.geojson
public/centropais/data/viajes_ocupados_desde.geojson
+20
-20
centropais_basemap.js
public/js/centropais_basemap.js
+4
-4
No files found.
public/centropais/data/od.geojson
View file @
0869d678
This diff is collapsed.
Click to expand it.
public/centropais/data/viajes_ocupados_desde.geojson
View file @
0869d678
This diff is collapsed.
Click to expand it.
public/js/centropais_basemap.js
View file @
0869d678
...
...
@@ -987,12 +987,12 @@ const makeBaseMap = () => {
flowMapLayer
=
L
.
canvasFlowmapLayer
(
data
,
{
// Define origins and destination from json values
originAndDestinationFieldIds
:
{
originUniqueIdField
:
"id_orig"
,
originUniqueIdField
:
"id_orig
en
"
,
originGeometry
:
{
x
:
"xo"
,
y
:
"yo"
},
destinationUniqueIdField
:
"id_dest"
,
destinationUniqueIdField
:
"id_dest
ino
"
,
destinationGeometry
:
{
x
:
"xd"
,
y
:
"yd"
...
...
@@ -1127,8 +1127,8 @@ const makeBaseMap = () => {
pane
:
"pane_flujos"
}).
bindTooltip
(
layer
=>
{
// what to display on hover
let
coords
=
layer
.
getLatLng
();
let
label
=
od
.
features
.
filter
(
f
=>
f
.
properties
.
X
==
coords
.
lng
&&
f
.
properties
.
Y
==
coords
.
lat
);
return
label
[
0
].
properties
.
CMCP
;
let
label
=
od
.
features
.
filter
(
f
=>
f
.
properties
.
lng
==
coords
.
lng
&&
f
.
properties
.
lat
==
coords
.
lat
);
return
label
[
0
].
properties
.
nombre
;
});
flowMapLayer
.
addTo
(
map
);
// hack to get origins and destinations in desired map pane
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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