mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 19:47:45 +01:00
Band-aid playermarkers on IE8
This commit is contained in:
parent
2fa68b2992
commit
17af53ee1f
@ -15,9 +15,9 @@
|
|||||||
<link rel="icon" href="images/dynmap.ico" type="image/ico" />
|
<link rel="icon" href="images/dynmap.ico" type="image/ico" />
|
||||||
|
|
||||||
<script type="text/javascript" src="js/jquery.min.js"></script>
|
<script type="text/javascript" src="js/jquery.min.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="js/leaflet.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/leaflet.css" />
|
<link rel="stylesheet" type="text/css" href="css/leaflet.css" />
|
||||||
|
<script type="text/javascript" src="js/leaflet.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="js/custommarker.js"></script>
|
<script type="text/javascript" src="js/custommarker.js"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="js/dynmaputils.js"></script>
|
<script type="text/javascript" src="js/dynmaputils.js"></script>
|
||||||
|
@ -40,6 +40,7 @@ DynMap.prototype = {
|
|||||||
inittime: new Date().getTime(),
|
inittime: new Date().getTime(),
|
||||||
followingPlayer: '',
|
followingPlayer: '',
|
||||||
missedupdates: 0,
|
missedupdates: 0,
|
||||||
|
canvassupport: !!document.createElement('canvas').getContext,
|
||||||
formatUrl: function(name, options) {
|
formatUrl: function(name, options) {
|
||||||
var url = this.options.url[name];
|
var url = this.options.url[name];
|
||||||
$.each(options, function(n,v) {
|
$.each(options, function(n,v) {
|
||||||
@ -127,6 +128,9 @@ DynMap.prototype = {
|
|||||||
$(me).trigger('zoomchanged');
|
$(me).trigger('zoomchanged');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(me.canvassupport == false)
|
||||||
|
me.options.showplayerfacesinmenu = false;
|
||||||
|
|
||||||
/*google.maps.event.addListener(map, 'dragstart', function(mEvent) {
|
/*google.maps.event.addListener(map, 'dragstart', function(mEvent) {
|
||||||
me.followPlayer(null);
|
me.followPlayer(null);
|
||||||
});*/
|
});*/
|
||||||
|
@ -10,6 +10,10 @@ componentconstructors['playermarkers'] = function(dynmap, configuration) {
|
|||||||
var markerPosition = dynmap.getProjection().fromLocationToLatLng(player.location);
|
var markerPosition = dynmap.getProjection().fromLocationToLatLng(player.location);
|
||||||
player.marker.setLatLng(markerPosition);
|
player.marker.setLatLng(markerPosition);
|
||||||
|
|
||||||
|
// Only show player faces if canvas supported
|
||||||
|
if(dynmap.canvassupport == false)
|
||||||
|
configuration.showplayerfaces = false;
|
||||||
|
|
||||||
$(div)
|
$(div)
|
||||||
.addClass('Marker')
|
.addClass('Marker')
|
||||||
.addClass('playerMarker')
|
.addClass('playerMarker')
|
||||||
|
Loading…
Reference in New Issue
Block a user