-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfy-pays-antillesguyane.js
38 lines (33 loc) · 1.41 KB
/
mfy-pays-antillesguyane.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.antillesguyane',
maxZoom: 20,
format: 'image/png',
attribution: '↖Menu . Categories↗)'
});
var minZoom = 6;
var maxZoom = 20;
var wfs1 = 'worldmap:france.patrim.mh.toutpoint';
var wfs2 = 'worldmap:france.poi.barrest';
var init = {"lat": 15, "lng": -61, "zoom": 8 }
var southWest = L.latLng(3, -63),
northEast = L.latLng(18, -51),
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=Antilles%2CGuyane%2CMartinique%2CGuadeloupe"
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";