mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
Camera-driven Mapillary coverage (z0–5 overview points from orbit, z11–14 ground-clamped sequence lines below 60 km), per-sequence image cones, an embedded MapillaryJS viewer bridge with a camera-follow mode, sprite icons for map features, and a query engine that turns a plan into a streamed z14 tile fan-out. Registers an on-globe CC BY-SA 4.0 credit while enabled. Co-Authored-By: Claude Fable 5.1 <[email protected]>
25 lines
761 B
JavaScript
25 lines
761 B
JavaScript
import { installMapillaryRoutes } from './mapillary/routes.js';
|
|
|
|
/**
|
|
* Vite plugin: Mapillary street-level data.
|
|
*
|
|
* Serves cached vector tiles (coverage, point features, traffic signs) with
|
|
* the Mapillary token added server-side, fans a city-sized bbox out over
|
|
* z14 feature tiles as an NDJSON stream, turns natural-language requests
|
|
* into query plans with Claude (ANTHROPIC_API_KEY stays on this machine),
|
|
* and proxies the MIT-licensed Mapillary sprite icons.
|
|
*/
|
|
function mapillaryProxy() {
|
|
return {
|
|
name: 'mapillary-proxy',
|
|
configureServer(server) {
|
|
installMapillaryRoutes(server.middlewares);
|
|
},
|
|
configurePreviewServer(server) {
|
|
installMapillaryRoutes(server.middlewares);
|
|
},
|
|
};
|
|
}
|
|
|
|
export { mapillaryProxy };
|