Skip to content

Instantly share code, notes, and snippets.

View Pisi-Deff's full-sized avatar

Eerik Mägi Pisi-Deff

  • Estonia
View GitHub Profile
@Pisi-Deff
Pisi-Deff / regiongrid.js
Last active January 12, 2025 00:38
Dynmap RegionGrid component
componentconstructors['regiongrid'] = function(dynmap, configuration) {
// var cfg = $.extend({}, configuration);
var me = this;
this.chunkGroup = new L.LayerGroup();
this.regionGroup = new L.LayerGroup();
this.chunkMarkers = [];
this.regionMarkers = [];
@Pisi-Deff
Pisi-Deff / markers.js
Last active January 10, 2018 20:41
fixed markers.js
var dynmapmarkersets = {};
componentconstructors['markers'] = function(dynmap, configuration) {
var me = this;
function removeAllMarkers() {
$.each(dynmapmarkersets, function(setname, set) {
$.each(set.markers, function(mname, marker) {
deleteMarker(set, marker);