-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfy-pays-paysalpins.js
38 lines (33 loc) · 1.39 KB
/
mfy-pays-paysalpins.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// local callers
var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var hillshading = L.tileLayer('http://{s}.tiles.wmflabs.org/hillshading/{z}/{x}/{y}.png', { maxZoom: 20, opacity: 0 });
var mapbase = L.tileLayer.wms('https://mappingforyou.eu/geoserver/wms?', {
layers: 'pays.paysalpins',
maxZoom: 20,
format: 'image/png',
attribution: '↖Menu . Categories↗)'
});
var minZoom = 7;
var maxZoom = 20;
var wfs1 = 'worldmap:france.patrim.mh.toutpoint';
var wfs2 = 'worldmap:france.poi.barrest';
var init = {"lat": 47, "lng": 11, "zoom": 7 }
var southWest = L.latLng(45, 5),
northEast = L.latLng(50, 18),
bounds = L.latLngBounds(southWest, northEast);
// Flickr localisé
var flickrAPI = "";
flickrAPI += "https://api.flickr.com/services/rest/?";
flickrAPI += "&method=flickr.photos.search";
flickrAPI += "&api_key=11d9a83951636a94885f5145f1a33727";
/* Comment or Uncomment for user_id to show only specific user geo-photos*/
//flickrAPI += "&user_id=194715090%40N08";
flickrAPI += "&has_geo=1";
// essai pour local
flickrAPI += "&tags=Schweiz%2CSuisse%2CÖsterreich"
flickrAPI += "&extras=geo,url_t,owner_name,date_upload,license";
//flickrAPI += "&per_page=5"; // Nº máximo de fotos para visualizar
//flickrAPI += "&page=1";
flickrAPI += "&format=json";
// UPDATE: Request plain old JSON
flickrAPI += "&nojsoncallback=1";