Skip to content

Commit a892d4c

Browse files
committed
Merge pull request #129 from heiglandreas/feature/labelsInMap
Feature/labels in map
2 parents 834beec + 76fd354 commit a892d4c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Diff for: bower.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"fullcalendar": "~2.2.5",
2929
"jbox": "~0.3.2",
3030
"html5shiv": "~3.7.2",
31-
"jquery-cookie": "~1.4.1"
31+
"jquery-cookie": "~1.4.1",
32+
"Leaflet.label": "~0.2.1"
3233
}
3334
}

Diff for: src/module/Phpug/public/js/phpug.js

+4
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ var cfp = L.layerJSON({
125125
},
126126
onEachMarker : function(e, marker) {
127127
oms.addMarker(marker);
128+
marker.bindLabel(e.name, {opacity:0.9});
128129
return;
129130
}
130131
});
@@ -170,6 +171,7 @@ var joindin = L.layerJSON({
170171
},
171172
onEachMarker : function(e, marker) {
172173
oms.addMarker(marker);
174+
marker.bindLabel(e.name, {opacity:0.9});
173175
return;
174176
}
175177
});
@@ -248,6 +250,7 @@ var phpug = L.layerJSON({
248250
},
249251
onEachMarker : function(e, marker){
250252
oms.addMarker(marker);
253+
marker.bindLabel(e.name, {opacity:0.9});
251254
return;
252255
}
253256
});
@@ -310,6 +313,7 @@ var mentoring = L.layerJSON({
310313
},
311314
onEachMarker : function(e,marker){
312315
oms.addMarker(marker);
316+
marker.bindLabel(e.name, {opacity:0.9});
313317
return;
314318
},
315319
buildIcon : function(data, title){

Diff for: src/module/Phpug/view/phpug/index/index.phtml

+2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ $this->headLink()->appendStylesheet('lib/leaflet/dist/leaflet.css','text/css',
55
array('conditional' => 'lte IE8',)
66
);
77
$this->headLink()->appendStylesheet('lib/leaflet-search/dist/leaflet-search.min.css');
8+
$this->headLink()->appendStylesheet('lib/Leaflet.label/dist/leaflet.label.css');
89

910
$this->headScript()->prependFile('js/phpug/phpug.js');
1011
//$this->headScript()->prependFile('lib/leaflet-search/dist/leaflet-searchl.geosearch.provider.openstreetmap.js');
12+
$this->headScript()->prependFile('lib/Leaflet.label/dist/leaflet.label.js');
1113
$this->headScript()->prependFile('lib/leaflet-search/dist/leaflet-search.min.js');
1214
$this->headScript()->prependFile('lib/leaflet-layerjson/dist/leaflet-layerjson.min.js');
1315
$this->headScript()->prependFile('lib/overlapping_marker_spiderfier-leaflet/dist/oms.min.js');

0 commit comments

Comments
 (0)