Commit Graph

90 Commits

Author SHA1 Message Date
Brandon Liu
005b66a373 More muted styling in iframe mode (#593)
* More muted styling in iframe mode

Colors match those on source.coop where the viewer is embedded.

* linting
2025-09-19 14:27:21 +08:00
Brandon Liu
667f0fd90b app: Ensure points and lines are above polygons in tile view (#577)
* app: Ensure points and lines are above polygons in tile view
2025-06-02 11:33:21 -04:00
Brandon Liu
9e10aeb24b fix text zoom color [#555] (#579) 2025-05-30 14:25:19 -04:00
Brandon Liu
4b2312c039 Iframe (#573)
* hash value for iframe

* app: modify UI for iframe mode

* change position of zoom number to not be blocked by large attribution
* improve appearance of filename in nav for local files

* improve fill appearance in overlay mode
2025-05-16 09:54:17 -07:00
Brandon Liu
77612d37ee app: show local filename in top bar (#572)
* fix URL state of showTileBoundaries
* improve cursor hover
2025-05-12 16:28:47 -07:00
Brandon Liu
86d59b7346 force map view to be dark mode [#567] (#569)
* force map view to be dark mode [#567]

* nearest resampling for raster mode
* cleanup python deps

* formatting
2025-05-07 10:56:59 -07:00
Brandon Liu
e7016748df app: add Overture Places to list of examples (#566)
* app: add Overture Places to list of examples
2025-04-30 09:43:01 -06:00
Brandon Liu
ca8cd48330 app: clean up archive view; allow closing leaf (#563) 2025-04-27 14:25:44 +08:00
Brandon Liu
6bf9b8fcb0 fix setting of source when URL is changed after error [#49] (#562)
* fix setting of source when URL is changed after error [#49]

* fix setFeatureState when unchecking inspect
2025-04-26 21:04:04 +08:00
Rob Labs
60056a5621 Add a label to a polygon with name (#561)
* fix to toggle visibility of the label layer for line data

* Add polygon label along poly border.  Related to #555.  Depends on #560
2025-04-26 20:34:15 +08:00
Rob Labs
aa43ad8365 fix to toggle visibility of the label layer for line data (#560) 2025-04-26 18:58:07 +08:00
Brandon Liu
bb51c64b72 New viewer 4 (#559)
app: viewer improvements [#49]

* show missing id when feature id is undefined instead of 0
* improve point symbology for dense point tilesets
* show lon,lat in popup
* better wrapping for long popup value strings
2025-04-25 11:33:32 +08:00
Brandon Liu
ae4840fdf1 app: fix tile border display [#49] (#558)
* clean up comments and console
2025-04-25 11:29:11 +08:00
Brandon Liu
26c857ff40 app: viewer improvements [#555] (#557)
* add line labels
* allow loading remote and local tilesets without clearing the current tileset
2025-04-22 14:33:33 +08:00
Brandon Liu
731f03d325 New viewer [#49] (#549)
app: Rewrite of PMTiles viewer (pmtiles.io) [#49, #551, #555, #556]

* Rewrite the app using SolidJS / Tailwind.
* Make the map view mobile friendly.
* Add an archive inspector for viewing the low level structure of PMTiles.
* Add a tile inspector for viewing a single tile in isolation. 
* Support TileJSON.
* Support raster archives.
2025-04-22 11:05:19 +08:00
Jake Low
538dc3a530 app: disable pointer events on popup unless it is frozen (#537) 2025-03-19 09:52:10 +08:00
Brandon Liu
90a6a2af3c app: bump vite version, add tilezen to sample datasets (#536) 2025-03-11 13:43:40 -07:00
Brandon Liu
caa8f1f726 bump viewer to maplibre 5.1, latest basemap (#525)
* bump viewer to maplibre 5.1, latest basemap
2025-02-04 23:41:47 +08:00
Brandon Liu
e678dd5326 Pmtiles js v4 (#499)
* pmtiles js v4: remove pmtiles spec v2 compatibility [#287]
* restructure ts files into src
* add tsup for building ESM/CJS and making types work in ESM
* bump fflate dependency
* update CHANGELOG for js 4.0.0
2024-11-26 11:56:41 +08:00
Brandon Liu
66303480b6 Update pmtiles.io example links to v4 (#477) 2024-10-12 13:08:01 +08:00
Brandon Liu
d16faa2658 update all github pages URLs. (#406) 2024-06-08 10:22:27 -06:00
Brandon Liu
bc8f97d642 bump basemap style to v3 [#49] (#398) 2024-05-30 11:51:30 +08:00
Brandon Liu
35c31e437c Remove old basemap examples from app, replace with source.coop mirror [#49] (#382)
* fix js changelog
2024-04-06 16:41:22 -07:00
Brandon Liu
08b2c5e3b1 viewer: break tile inspect into separate entrypoint [#49] (#379)
* viewer: break tile inspect into separate entrypoint [#49]

* fix tsc
2024-03-15 12:44:43 +08:00
Brandon Liu
1527d57d23 allow popup freezing [#282] (#378)
* allow popup freezing [#282]

* formatting
2024-03-15 12:01:40 +08:00
Brandon Liu
7cc025c776 applying linter fixes to viewer /app [#49] (#344)
Add biome linter and configuration to /app viewer.
2024-02-01 15:59:34 +08:00
Brandon Liu
6638d040a5 linting and typing improvements [#287] (#337)
* Typing improvements [#287]

* rename FileApiSource to FileSource
* In a few cases we need to use any and biome-ignore. Deferring any restructuring here to js v4.
* replace prettier with biome
2024-01-31 12:22:25 +08:00
Brandon Liu
fd333cc1b6 maplibre inspector stringifies boolean values [#270] (#271) 2023-10-19 12:44:49 -04:00
Tobias
41c497109f Inspector: Explose true/false values (#270)
* Inspector: Explose true/false values

`true`/`false` where hidden from the UI, they need to be transformed to strings.

* Update Inspector.tsx
2023-10-19 12:28:42 -04:00
Brandon Liu
96eb357362 app improvements (#258)
* viewer app: improve type safety and visibility of overlay features.

* correct basemap attribution.

* prettier
2023-09-27 13:49:40 +08:00
Brandon Liu
f378bb97a8 upgrade vector basemap to tiles v3, styles v2 [#49] (#257) 2023-09-26 16:25:30 +08:00
Brandon Liu
fd297cc71b Viewer layer toggle shows layer colors [#243] (#252) 2023-09-20 11:44:25 +08:00
Brandon Liu
70146469e9 detect map hash being passed more reliably to auto-set bounds [#246] (#251)
* add README for installing /app [#244]
2023-09-11 11:05:50 +08:00
Brandon Liu
befa393ad9 Inspector improvements (#218)
* conditionally reposition map if map hash wasn't passed [#49]

* add 20230408 basemap to viewer presets
2023-07-08 20:35:24 +08:00
James Scott-Brown
b1a4ecbc7d change single to double quotes 2023-05-15 17:07:14 +01:00
James Scott-Brown
606f79d483 Remove max-width for tooltips
The Maplibre docs say that `options.maxWidth` is "A string that sets the CSS property of the popup's maximum width, eg '300px' . To ensure the popup resizes to fit its content, set this property to 'none'"

https://maplibre.org/maplibre-gl-js-docs/api/markers/#popup
2023-05-15 15:17:00 +01:00
Brandon Liu
7d57f57c3e app: clean up unused dependencies 2023-05-09 13:52:09 +08:00
Brandon Liu
0053c86652 viewer app: raster overlays show vector basemap 2023-05-08 14:00:27 +08:00
kajkal
3a948e984f fix invalid link href in GitHub Pages 2023-03-27 16:43:52 +02:00
kajkal
baea873997 prettier formatting 2023-03-26 14:58:29 +02:00
kajkal
3282e6f325 simplify opening a new viewer tab 2023-03-26 14:10:33 +02:00
kajkal
b3631def6b add vector layers visibility controller 2023-03-26 14:08:14 +02:00
kajkal
e21d1b5c76 improve UX of "show attributes" mode 2023-03-26 12:43:04 +02:00
Brandon Liu
0dbe87cfdd format app/ with prettier 2023-03-15 14:37:57 +08:00
RobLabs.com
6700673009 Add WebP PMTiles binary & example file 2023-03-14 19:58:43 -07:00
RobLabs.com
70c173b7fd Allow for PMTiles with WebP raster tiles 2023-03-14 16:58:12 -07:00
Brandon Liu
06fe05f27a fix types 2023-03-14 09:25:26 +08:00
Brandon Liu
7d69ee1eb5 inspector: fix raster minzoom/maxzoom 2023-03-14 09:23:04 +08:00
Brandon Liu
84fad95cde prettier formatting for app/ 2023-03-12 13:34:50 +08:00
James Scott-Brown
163397050b disable "Load URL" button if url is empty 2023-03-10 16:21:27 +00:00