Files
gods-eye-view/server/providers/mapillary.js
T
Said TurkseverandClaude Fable 5.1 547b706f67 refactor(mapillary): remove the plain-English query feature
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]>
2026-09-25 18:08:43 +01:00

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 };