Commit Graph

146 Commits

Author SHA1 Message Date
Alexander Zhukov
5fcf553427 🔬 fix a typo 2017-05-14 18:26:21 +03:00
Michael Straßburger
724e605317 🎨 convert braille idx to bitstring to allow ascii selection 2017-05-12 23:11:42 +02:00
Michael Straßburger
7edde3b30f 🎨 moving poiMarker to config, improving asciiMap 2017-05-12 19:58:39 +02:00
Michael Straßburger
7e255edc53 🎨 adding braille-free mode, activate with 'c' 2017-05-12 18:48:38 +02:00
Michael Straßburger
3888293f0e 🎨 welcome message, callbacks, latlng normalization 2017-05-10 14:26:04 +02:00
Michael Straßburger
ca6a4e27ae 🏃 moving label selection logic to tile loader 2017-05-10 14:24:11 +02:00
Michael Straßburger
3dffcde3b5 only keep 16 tiles in memory 2017-05-10 14:22:07 +02:00
Michael Straßburger
0e5ce02e79 🎨 support label characters with width>1 2017-05-10 14:16:36 +02:00
Michael Straßburger
9c6afe2ffe 🐁 welcome back, drop + drag! 2017-04-29 00:39:20 +02:00
Michael Straßburger
d2c0c993cb 🐁 showing lat/lon under cursor, center on click 2017-04-29 00:15:31 +02:00
Michael Straßburger
8e93900475 🎨 using mapscii.me as osm2vectortiles source 2017-04-28 03:55:11 +02:00
Jannis R
e59384e53b
request-promise -> node-fetch 2017-04-26 23:39:02 +02:00
Michael Straßburger
3706ec75b6 📝 renaming termap -> mapscii 2017-04-26 18:06:28 +02:00
Michael Straßburger
07fcdf7d3a 📝 adding note about openmaptiles 2017-04-26 17:35:47 +02:00
Michael Straßburger
f9554ddedf 🎨 set start position to the c-base! <3 2017-04-26 17:34:18 +02:00
Michael Straßburger
b222512e7e 🐛 adding empty callback to async writeFile 2017-04-26 17:33:13 +02:00
Michael Straßburger
26aa2450e1 📚 adding simplifyPolylines to the configuration 2016-11-13 05:40:26 +01:00
Michael Straßburger
5f29780c7d 📚 using the config module in TileSource 2016-11-13 05:38:03 +01:00
Michael Straßburger
8e0b976ae0 🔎 ordering labels by scalerank before trying to place them 2016-11-13 05:35:08 +01:00
Michael Straßburger
ef6ab82376 🐁 working on mouse projection 2016-11-10 18:43:35 +01:00
Michael Straßburger
f9c16f2d6d 🎨 pulling and using individual tile extents in preperation for reduced tiles 2016-11-10 08:00:36 +01:00
Michael Straßburger
6a1eb8afe8 🌐 adding global config file, centralizing options 2016-11-10 07:09:32 +01:00
Michael Straßburger
2d7cff71eb 🎨 adding simplify-js to readme, adapting canvas 2016-11-10 06:14:20 +01:00
Michael Straßburger
ae65f95e24 🏃 implementing polyline simplification, label buffering, cleanup 2016-11-10 06:11:14 +01:00
Michael Straßburger
caea4c6aec 🎨 adding ref(erence) support for layer styles 2016-11-10 02:20:44 +01:00
Michael Straßburger
e3f42e46c9 🏃 optimizing draw order based on zoom level 2016-11-09 03:35:43 +01:00
Michael Straßburger
d10ed9159f 🎨 adding landuse and new base dark style 2016-11-09 03:08:40 +01:00
Michael Straßburger
74a4dffbe7 📐 don't try to paint post-reduction-invalid polygons 2016-11-08 21:50:20 +01:00
Michael Straßburger
f2cbeb465e 📐 adding hole support to polygon triangulation 2016-11-08 18:32:10 +01:00
Michael Straßburger
c206055596 🏃 massive speed gain after a night of node profiling and lessons learned 2016-11-08 06:44:53 +01:00
Michael Straßburger
461a4ab049 🏃 using rbush's bulk load (2-3 times faster), working on polygon speed 2016-11-07 16:23:22 +01:00
Michael Straßburger
7ed86ceed4 🏃 converting colors on Tile load, not on every feature draw 2016-11-07 02:49:07 +01:00
Michael Straßburger
e69321dfb6 🚱 bringing polygon rendering back, todo: holes 2016-11-06 22:13:50 +01:00
Michael Straßburger
cfd8e24342 🏃 adding tile feature padding to improve edge clipping 2016-11-06 18:56:57 +01:00
Michael Straßburger
329f6fc26b 🏃 removing matrix translations, combinding reduce/move/scale in one loop 2016-11-06 17:14:38 +01:00
Michael Straßburger
2e7f9abfeb 🎨 respecting feature type set in style (line, fill or symbol) 2016-11-06 16:04:32 +01:00
Michael Straßburger
8aa29a9e28 🏃 applying styles on tile load, filtering unstyled features, caching style 2016-11-06 15:34:36 +01:00
Michael Straßburger
59b64e8dd2 👷 cleanup, testing tiles with an extent of 512, config params 2016-11-06 14:15:30 +01:00
Michael Straßburger
a21d172a2c 👷 making mbtiles library optional (install via npm install -g mbtiles) 2016-11-06 00:21:31 +01:00
Michael Straßburger
401335049d 🎨 adding any, none, has, !has, >, < and <= style filters 2016-11-05 20:24:49 +01:00
Michael Straßburger
0bc0d3a980 👷 preparing benchmark, moving output to main & headless mode 2016-11-05 17:45:25 +01:00
Michael Straßburger
69b946b85c 🔍 limiting tile repetion to x axis, optimizing moveBy 2016-11-04 21:22:56 +01:00
Michael Straßburger
ccad39cf77 🎨 supporting style based minzoom, adding sepertae admin_level_4 style 2016-11-04 04:00:23 +01:00
Michael Straßburger
cc97cfd095 🏠 persiting downloaded tiles in $home/.mapscii/cache/ 2016-11-04 01:42:23 +01:00
Michael Straßburger
24434052cb 🔍 endless magnification zoomability after max tile zoom level is reached 2016-11-03 07:04:53 +01:00
Michael Straßburger
ea879a77f7 💼 canvas matrix save/store lifo buffer 2016-11-03 06:27:23 +01:00
Michael Straßburger
61be4181fd implementing zoom level based map movement 2016-11-03 05:54:38 +01:00
Michael Straßburger
ae9507d4e3 🚦 uniting layer rendering + label buffering across tiles 2016-11-03 05:39:44 +01:00
Michael Straßburger
6c2819a89c 🎊 multi tile support! endless left/right scroll, promise refactor 2016-11-03 04:29:50 +01:00
Michael Straßburger
d460421eea 📡 implementing HTTP source handling for TileSource 2016-11-03 02:14:47 +01:00
Michael Straßburger
3895fd1fd3 🎭 more async refactoring in preperation for multitile support 2016-11-03 01:25:09 +01:00
Michael Straßburger
da6c398e6d 🍺 comitting current dev stage of various refactors 2016-11-02 13:19:46 +01:00
Michael Straßburger
eb88d231a9 🔳 calculating visible tiles 2016-10-03 22:09:04 +02:00
Michael Straßburger
e841d634f9 📐 adding support for holes in polygon triangulation 2016-10-03 20:01:30 +02:00
Michael Straßburger
c0da2871d6 🔳 accurate calculation of current viewport bbox 2016-10-03 19:19:41 +02:00
Michael Straßburger
d2f182c2b2 🎨 clearing screen right before first draw 2016-10-03 17:05:14 +02:00
Michael Straßburger
043e271985 🔍 calculating minZoom based on terminal width, fit map on startup 2016-10-03 16:42:14 +02:00
Michael Straßburger
dd755ba8a8 🔍 adapting to "real" zoom levels, starting with full tile fit 2016-10-03 16:26:41 +02:00
Michael Straßburger
89f4521251 🎨 adding support for style.constants 2016-10-03 05:29:40 +02:00
Michael Straßburger
afe7a53009 ↔️ adding config for used input/output stream 2016-10-01 21:05:16 +02:00
Michael Straßburger
3b05be5f14 🎨 allow specific feature selection in render order (road->water->road:bridge) 2016-10-01 04:47:10 +02:00
Michael Straßburger
bc2d050581 🎨 respecting style.minzoom 2016-09-29 23:27:58 +02:00
Michael Straßburger
bdfcae4fa0 ↪️ implemting Canvas.rotate and prototype degree control (k & l) 2016-09-29 20:35:22 +02:00
Michael Straßburger
0e481bf5c9 🐁 adding Renderer.featuresAt to return features for mouse positions 2016-09-29 20:03:53 +02:00
Michael Straßburger
80edcc3f04 🐁 keep drawing the map while dragging it 2016-09-29 13:32:08 +02:00
Michael Straßburger
bd83950eeb 🎨 optimizing label/marker rendering 2016-09-29 01:24:00 +02:00
Michael Straßburger
f493a48e34 🎨 applying style.paint['line-width'] 2016-09-29 01:02:21 +02:00
Michael Straßburger
7bfe9bb57b 💖 adding stroke-width support for (poly)lines! 2016-09-29 00:57:28 +02:00
Michael Straßburger
814d698203 🎨 setting bright's background to black 2016-09-28 22:51:28 +02:00
Michael Straßburger
a7c8a4206b 🎨 supporting global background color via style definition 2016-09-28 19:39:00 +02:00
Michael Straßburger
334032da59 🎨 optimizing canvas size calculation 2016-09-28 19:29:54 +02:00
Michael Straßburger
3f01b85e81 🔍 using markers for labels that won't fit on the screen anymore 2016-09-28 18:43:53 +02:00
Michael Straßburger
a2232a53dd 🚤 clamping polygon points to visible area, reducing points afterwards 2016-09-28 18:18:16 +02:00
Michael Straßburger
05558f0cdf 🚤 reducing points after scaling to speed up rendering 2016-09-28 18:06:24 +02:00
Michael Straßburger
f5fdd8dea5 🎨 working on background color based polygon filling 2016-09-28 14:11:05 +02:00
Michael Straßburger
22907f4168 📐 adding utils.pointInPolygon 2016-09-28 13:39:34 +02:00
Michael Straßburger
bfe6abadd7 🎨 adding support for background color 2016-09-28 13:38:47 +02:00
Michael Straßburger
64b03e3422 🔍 adding house numbers and custom label margin per layer 2016-09-27 23:45:26 +02:00
Michael Straßburger
6fbd676a2e 👍 using readline's cursorTo, thanks to @alangecker 2016-09-27 23:42:24 +02:00
Michael Straßburger
f56b37d3b0 📖 switching to refactored text renderer 2016-09-27 17:23:58 +02:00
Michael Straßburger
cfe063cf2e 🔍 using spatial indexing to determain which features to render 2016-09-27 14:53:47 +02:00
Michael Straßburger
06528f488d 📐 using earcut for triangulation, implementing own Canvas 2016-09-27 13:57:59 +02:00
Michael Straßburger
a3fb7149f2 🐃 finishing BrailleBuffer! 2016-09-23 21:06:24 +02:00
Michael Straßburger
719b099cdc 🐃 working on own BrailleBuffer implementation 2016-09-23 03:53:39 +02:00
Michael Straßburger
11c2f1f544 🔮 abstracting tile handling, preparing usage of spatial indexing 2016-09-22 05:09:07 +02:00
Michael Straßburger
0877eaca86 🎨 implementing mapbox style compiler, turning filter into call chains 2016-09-21 23:40:08 +02:00
Michael Straßburger
d7c7500a7f 🎨 improving Styler condition parser, adding main.js 2016-09-21 21:52:35 +02:00
Michael Straßburger
1acde4d1d3 🔨 refactoring and becoming more classy 2016-09-21 19:47:20 +02:00
Michael Straßburger
1effed33d9 🔍 adapting label decluttering to centered labels 2016-09-21 17:35:16 +02:00
Michael Straßburger
d3e2961184 📖 centering of label texts, better text selection 2016-09-21 15:41:44 +02:00
Michael Straßburger
241f9f7ef6 refactoring into separate modules, extending Canvas 2016-09-21 14:57:43 +02:00
Michael Straßburger
4ae431718b 🎨 adding $type to props to allow filters matching it 2016-09-21 05:41:47 +02:00
Michael Straßburger
1afd8ec9c2 🎨 MVP version of mapbox style parser 2016-09-21 05:18:20 +02:00
Michael Straßburger
87340c1d3c 📐 implementing inner exclusion of filled polygons 2016-09-21 01:44:51 +02:00
Michael Straßburger
8ccca7f3e0 🔍 improving label collision detection 2016-09-20 22:36:22 +02:00
Michael Straßburger
014eab2b70 🌲 using r-tree spatial indexing to declutter the labels 2016-09-20 20:52:49 +02:00