replace marker tooltip with popup + update jquery
This commit is contained in:
@@ -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)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
6
script/jquery.min.js
vendored
6
script/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user