Changeset 175 for binary-improvements


Ignore:
Timestamp:
Sep 7, 2014, 8:38:49 PM (5 years ago)
Author:
alloc
Message:

LandClaims on webmap test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/webserver/js/index.js

    r173 r175  
    159159
    160160var playersOnlineMarkerGroup = L.layerGroup();
    161 var playersOfflineMarkerGroup = L.markerClusterGroup();
     161var playersOfflineMarkerGroup = L.markerClusterGroup({
     162        maxClusterRadius: function(zoom) { zoom == MAXZOOM ? 10 : 50 }
     163});
    162164var landClaimsGroup = L.markerClusterGroup({
    163165        disableClusteringAtZoom: MAXZOOM,
     
    333335                var color = active ? "#00ff00" : "#ff0000";
    334336               
     337                console.log("id: " + steamid + " - " + active + " - " + color);
     338               
    335339                $.each( val.claims, function( key, val ) {
    336340                        var pos = L.latLng(val.z, val.x);
Note: See TracChangeset for help on using the changeset viewer.