inverse link reso
This commit is contained in:
@@ -5,13 +5,10 @@ function gestionarray() {
|
||||
}
|
||||
|
||||
function map() {
|
||||
var mymap = L.map('mapid').setView([48.866667, 2.333333], 14);
|
||||
var mymap = L.map('mapid').setView([48.9267935,2.3569287], 16);
|
||||
|
||||
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
|
||||
maxZoom: 18,
|
||||
attribution: '<a href="https://www.openstreetmap.org/"></a>'
|
||||
+ '<a href="https://creativecommons.org/licenses/by-sa/2.0/"></a>'
|
||||
+ '<a href="https://www.mapbox.com/"></a>',
|
||||
id: 'mapbox.streets'
|
||||
}).addTo(mymap);
|
||||
|
||||
@@ -26,11 +23,12 @@ function map() {
|
||||
|
||||
for (var i = 0; i < dyn_data.mappoints.length; i++) {
|
||||
L.marker([dyn_data.mappoints[i].lat, dyn_data.mappoints[i].long], {icon: greenIcon}).bindPopup(dyn_data.mappoints[i].title).addTo(mymap);
|
||||
// console.log("dyn_datad2", dyn_data.mappoints[i].title);
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
function scrollbar(){
|
||||
$(window).on("load",function(){
|
||||
$("#start > div > div").mCustomScrollbar({
|
||||
@@ -142,15 +140,15 @@ function drag() {
|
||||
|
||||
$rs.css({
|
||||
"top": yPos2,
|
||||
"left":xPos2,
|
||||
"width":PosHand,
|
||||
"bottom":"1px",
|
||||
"bottom":0,
|
||||
"height": 'auto',
|
||||
})
|
||||
|
||||
$links.css({
|
||||
"top": yPos2,
|
||||
"bottom":0,
|
||||
"left":xPos2,
|
||||
"width":PosHand,
|
||||
"bottom":"1px",
|
||||
"height": 'auto',
|
||||
})
|
||||
|
||||
@@ -257,16 +255,16 @@ function drag() {
|
||||
})
|
||||
|
||||
$rs.css({
|
||||
"width":xPos,
|
||||
"top": yPos2,
|
||||
"width":PosHand1,
|
||||
"bottom":"1px",
|
||||
"bottom":0,
|
||||
"height": 'auto',
|
||||
})
|
||||
|
||||
$links.css({
|
||||
"width":xPos,
|
||||
"top": yPos2,
|
||||
"bottom":0,
|
||||
"width":PosHand1,
|
||||
"bottom":"1px",
|
||||
"height": 'auto',
|
||||
})
|
||||
|
||||
@@ -307,8 +305,8 @@ function drag() {
|
||||
};
|
||||
|
||||
function dragcanvas() {
|
||||
var $links = $('#links canvas');
|
||||
var $reseau = $('#reseaux-sociaux svg')
|
||||
var $links = $('#reseaux-sociaux canvas');
|
||||
var $reseau = $('#links svg')
|
||||
|
||||
$links.draggable({
|
||||
// containment:"#start",
|
||||
@@ -320,11 +318,15 @@ function dragcanvas() {
|
||||
});
|
||||
}
|
||||
|
||||
function D3js() {
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
// gestionarray();
|
||||
clickhand();
|
||||
drag();
|
||||
dragcanvas();
|
||||
map();
|
||||
D3js();
|
||||
// scrollbar();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user