Skip to content

Instantly share code, notes, and snippets.

View Sumbera's full-sized avatar

∫ ∪ ∧∴ ∋ ∈ ⊇ ∧ Sumbera

View GitHub Profile
@Sumbera
Sumbera / README.md
Last active December 12, 2016 07:59
Tiled WMS overlay using ArcGIS JavaScript lib

Sample of using Tiled WMS overlay with ArcGIS JavaScript API 3.9.

@Sumbera
Sumbera / README.md
Last active February 12, 2024 16:20
Many points with Leaflet WebGL

Leaflet and WebGL sample rendering 80T points for more info read blog post

inspired by this and by very nice WebGL tutorial here

@Sumbera
Sumbera / L.CanvasOverlay.js
Last active February 3, 2023 09:47
Leaflet Canvas Overlay
/*
UPDATE July 2016 , moved and updated to here: https://github.com/Sumbera/gLayers.Leaflet
Generic Canvas Overlay for leaflet,
Stanislav Sumbera, April , 2014
- added userDrawFunc that is called when Canvas need to be redrawn
- added few useful params fro userDrawFunc callback
- fixed resize map bug
inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat
@Sumbera
Sumbera / README.md
Last active August 21, 2019 03:54
Many points with d3 and leaflet

Testing SVG limits of plotting points on map using D3, Leaflet following this base sample: http://bost.ocks.org/mike/leaflet. However instead of scaling SVG in deep zooms, I am using Enter/Update/Exit pattern from D3 to dynamically update points on map. This has been prototyped also here http://bl.ocks.org/sumbera/9972460 with brushing of 100T points.

For zooming out (causing all points to be displayed), I am filtering out points that can't be effectively visible, thus reducing number of points in SVG. (check console for log output).

This sample is using real data of 24T coordinates, with this points are clustered around cities, rather than artifically randomized. Real number of rendered points / removed points can be seen in console.log

@Sumbera
Sumbera / README.md
Last active August 29, 2015 13:58
Another brushing with d3

Modified version of Quadtree sample from http://bl.ocks.org/mbostock/4343214 This version uses Enter,Exit, Update pattern for selecting small portions of larger dataset (here 100T points) with quadtree filtering. This speed up rendering as only relatively small amount of points (given small brush) has to be rendered. This might be useful for maps zooming into details and panning/moving there. Another sources looked at

Move around the brush to discover generated points.

@Sumbera
Sumbera / README.md
Last active August 29, 2015 13:57
Mapy API WMS

shows Mapy API 4 with WMS service