Commit graph

43 commits

Author SHA1 Message Date
ff6e28d381
world, viewer: fix sign text colors
- Fix text colors for signs modified using dye
- Fix text colors specified using `#rrggbb` CSS syntax in JSON text

Only named colors specified via JSON text were working as intended. Dyed signs use different
color names.

The mapping of color names to values is now handled by the generator. Both the generator and the
viewer must be updated for sign text colors to work.
2025-01-06 21:16:41 +01:00
83bd936f80
viewer: add images for pale oak signs 2024-12-31 12:21:09 +01:00
643035eaed
viewer: switch to modern fetch API, do not cache metadata and entity files 2024-01-10 22:56:33 +01:00
3d024c6cd8
viewer: update opened marker popup on URL hash change 2024-01-10 22:56:33 +01:00
08f84fa339
viewer: do not show sign layer when the feature is disabled 2024-01-10 22:56:32 +01:00
7daddd6bbc
viewer: include open marker in URL
Allow sharing URLs that reference a marker.
2024-01-10 22:56:32 +01:00
7b3ac8647e
viewer: store URL paramters in a 'params' variable 2024-01-10 22:56:32 +01:00
76df56c9ce
viewer: sort signs at the same x/z coordinates from top to bottom 2024-01-10 22:56:32 +01:00
31de0dc0bd
viewer: sign popup styling 2024-01-10 22:56:31 +01:00
ac0fd06b16
viewer: add icon shadows 2024-01-10 22:56:31 +01:00
989428f78d
viewer: use sign icons instead of default markers 2024-01-10 22:56:31 +01:00
43d7dc751e
viewer: allow zooming to level 5
Allow zooming in far enough so neighboring signs don't overlap.
2024-01-10 22:56:31 +01:00
7834315dd3
viewer: add sign images 2024-01-10 22:56:31 +01:00
dca9c394f2
viewer: display markers for signs
Still needs better styling. It might also be nice to include the currently
opened marker in the URL.
2024-01-10 22:56:30 +01:00
cb7f428974
viewer: update to leaflet 1.9.4 2024-01-03 04:57:15 +01:00
a8e0af287b
viewer: update attribution link 2024-01-03 04:56:51 +01:00
fdf44ebc80
viewer: update to use "modern" ECMAScript features 2024-01-03 04:56:47 +01:00
cbc4a946c6
Info: rename mipmap "info" key to "bounds" 2021-02-13 11:06:30 +01:00
d2802b73f5
Info: make tile existence map mor efficient for sparse worlds
Explicitly list the coordinates where tiles exist instead of including a
full array with the size of the bounding box.
2021-02-13 11:06:21 +01:00
d33fa1429d
viewer: use === instead of == where appropriate 2020-06-28 17:27:22 +02:00
e5a15beddb
viewer: fix maxNativeZoom in Retina mode
Fixes: #8
2020-06-28 17:24:05 +02:00
6a160142ed
viewer: set image-rendering to pixelated
Chrome smooths the image when using crisp-edges.

crisp-edges is still set as a fallback for browers that don't support
pixelated (including Firefox).

Fixes: #7
2020-06-28 09:48:17 +02:00
3c837bb92e
viewer: update Leaflet to 1.6.0 2020-06-20 14:17:34 +02:00
12b5cb4f4e
viewer: switch to GitHub URL 2018-07-26 19:12:08 +02:00
02808dcf9b viewer: more URL hash improvements 2015-02-04 22:01:14 +01:00
82acbeacb1 viewer: update hash on load 2015-02-04 17:19:56 +01:00
14c9a48563 viewer: map state in URL hash 2015-02-04 17:00:53 +01:00
61f47521a9 viewer: add coordinate control 2015-02-04 07:22:49 +01:00
80b38d3d7a viewer: also set "image-rendering: crisp-edges" without browser prefix 2015-02-04 06:53:04 +01:00
e4a1cce0e4 viewer: fix overzoomed condition for retina 2015-02-04 06:52:57 +01:00
e027f76d9b Use higher-resolution tiles on retina displays 2015-02-04 06:35:31 +01:00
4d9f29afab Add mipmap support to allow zooming out 2015-02-03 20:15:58 +01:00
cca2ec58fb viewer: allow showing the light layer 2015-02-03 13:17:36 +01:00
9e0bbcf685 Generate light layer 2015-02-03 13:13:12 +01:00
e1b3347da5 Start mipmapping infrastructure 2015-02-03 12:42:33 +01:00
43a9df351a viewer: center on spawn 2015-02-02 18:39:44 +01:00
f8a66ee6b6 viewer: always use nearest-neighbor filter for zooming 2015-02-02 14:29:41 +01:00
410106b798 Allow zooming in to level 3 2015-02-02 14:18:04 +01:00
db5dbe26d8 viewer: allow zooming in by one step 2015-02-02 10:53:23 +01:00
32c967c1e9 viewer: better mobile browser support 2015-02-02 10:47:32 +01:00
8ec33899d5 Make the default zoom level 0 instead of 1 2015-02-02 09:58:41 +01:00
9395b1f01d viewer: add repository link 2015-02-02 09:34:38 +01:00
e922dd601e Add map viewer based on Leaflet 2015-02-02 09:08:36 +01:00