replace marker tooltip with popup + update jquery

This commit is contained in:
2018-10-17 20:54:14 +02:00
parent bc56f5af40
commit 2a7049638f
2 changed files with 10 additions and 14 deletions

View File

@@ -19,10 +19,6 @@
<script type="text/javascript"> <script type="text/javascript">
oSpot.pageInit = function(asHash) oSpot.pageInit = function(asHash)
{ {
/* TODO
- keep tooltip open so pictures can be clicked on (use popup?)
*/
self.tmp('$Map', $('#map')); self.tmp('$Map', $('#map'));
//Add Loading //Add Loading
@@ -157,10 +153,10 @@ oSpot.pageInit = function(asHash)
//Marker events //Marker events
oMarker.on({ oMarker.on({
/*mouseover: function(){ mouseover: function(){
this.openPopup();
}, },
mouseout: function(){ /*mouseout: function(){
},*/ },*/
click: function(oPoint){ click: function(oPoint){
@@ -187,9 +183,11 @@ oSpot.pageInit = function(asHash)
.append($Pics); .append($Pics);
} }
oMarker.bindTooltip($Tooltip[0], { oMarker.bindPopup($Tooltip[0], {
offset: [-16, -18], maxWidth: 1000,
direction: 'left' keepInView: true,
closeOnClick: true,
offset: new L.Point(0, -30)
}); });
}); });

File diff suppressed because one or more lines are too long