mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Street Level is imagery only from here on: coverage, sequences and the embedded viewer. The Claude planner, map-feature and traffic-sign tiles, the NDJSON feature stream, sprites, detection outlines and analyst records go, along with @anthropic-ai/sdk, zod and the Anthropic key entry. Co-Authored-By: Claude Fable 5.1 <[email protected]>
23 lines
618 B
JavaScript
23 lines
618 B
JavaScript
import { installMapillaryRoutes } from './mapillary/routes.js';
|
|
|
|
/**
|
|
* Vite plugin: Mapillary street-level coverage.
|
|
*
|
|
* Serves cached coverage vector tiles with the Mapillary token added
|
|
* server-side (and the unused z14 image point layer stripped in transit),
|
|
* plus a status route that says whether a token is configured.
|
|
*/
|
|
function mapillaryProxy() {
|
|
return {
|
|
name: 'mapillary-proxy',
|
|
configureServer(server) {
|
|
installMapillaryRoutes(server.middlewares);
|
|
},
|
|
configurePreviewServer(server) {
|
|
installMapillaryRoutes(server.middlewares);
|
|
},
|
|
};
|
|
}
|
|
|
|
export { mapillaryProxy };
|