Merge branch '12-client-draw-map-frontier' into 'master'
Resolve "Client -- draw map frontier" Closes #12 See merge request sgay/traque!10
This commit is contained in:
commit
99914c621a
1 changed files with 13 additions and 1 deletions
|
@ -34,6 +34,16 @@ var self_invisible =
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
// INIT MAP
|
||||
|
||||
var map_border = [
|
||||
[48.838991, 2.389310],
|
||||
[48.865471, 2.356133],
|
||||
[48.867714, 2.313811],
|
||||
[48.841481, 2.307930],
|
||||
[48.827912, 2.326842],
|
||||
[48.821826, 2.358638],
|
||||
[48.838991, 2.389310]
|
||||
];
|
||||
|
||||
var map;
|
||||
|
||||
function setup_map(){
|
||||
|
@ -43,6 +53,8 @@ function setup_map(){
|
|||
maxZoom: 19,
|
||||
attribution: '© OpenStreetMap'
|
||||
}).addTo(map);
|
||||
|
||||
L.polyline(map_border, {color: 'red'}).addTo(map);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -135,4 +147,4 @@ function setup_geoLoc(){
|
|||
};
|
||||
|
||||
navigator.geolocation.watchPosition(geoLoc_success, geoLoc_error, options);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue