forked from taylorhixson/WF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codesSnippets.js
executable file
·53 lines (45 loc) · 1.54 KB
/
codesSnippets.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!-- Mobile meta tags to go in head-->
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="MobileOptimized" content="320"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="cleartype" content="on">
<!--min width to go in head for #map style popup content-->
.leaflet-popup-content {
min-width: 200px;
min-height: 100px;
overflow-y: scroll;
}
<!--Add Google imagery/street hybrid layer instead of OSM-->
var googleHybrid = L.tileLayer('https://{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}',{
maxZoom: 20,
opacity: 1.0,
subdomains:['mt0','mt1','mt2','mt3']
});
googleHybrid;
map.addLayer(googleHybrid);
function pop_Mussandam_1(feature, layer) {
layer.on({
mouseout: function(e) {
for (i in e.target._eventParents) {
e.target._eventParents[i].resetStyle(e.target);
}
},
mouseover: highlightFeature,
});
<!--Change what's in function popMusandam_1 to the places layer-->
function pop_Mussandam_1(feature, layer) {
layer.on({
mouseout: function(e) {
for (i in e.target._eventParents) {
e.target._eventParents[i].resetStyle(e.target);
}
},
mouseover: highlightFeature,
});
<!--code for custom map start point-->
var place = [56.245643, 26.190158];
var map = L.map('map', {
zoomControl:true, maxZoom:28, minZoom:1
}).setView(place, 6);
<!--code for iframe in WordPress-->