replace marker tooltip with popup + update jquery
This commit is contained in:
@@ -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)
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user