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