This Angular application strictly adheres to the Zero-Deprecation Google Maps Platform Mandate. Any coding agent modifying or extending this repository MUST maintain full compliance with the rules below.
- Bootstrap & Dynamic Loading:
@googlemaps/js-api-loaderv2 functional API (setOptions()+importLibrary('core' | 'maps' | 'marker' | 'places' | 'elevation')). - Angular Map Component:
@angular/google-maps(GoogleMap,MapAdvancedMarker) withschemas: [CUSTOM_ELEMENTS_SCHEMA]for<gmp-*>web components. - Map Initialization & Attribution:
mapId: 'DEMO_MAP_ID'andinternalUsageAttributionIds: ['gmp_git_agentsamples_v1.0.0']passed ingoogle.maps.MapOptions. - Markers:
MapAdvancedMarker/AdvancedMarkerElement(never legacygoogle.maps.Markeror<map-marker>). - Places Search & Autocomplete:
Place.searchByText()(importLibrary('places')) with explicitfields.PlaceAutocompleteElement(<gmp-place-autocomplete>) listening to thegmp-selectevent (event.placePrediction.toPlace()+place.fetchFields(...)).
- Elevation:
ElevationService(importLibrary('elevation')). - GeoJSON Zones:
google.maps.Data(map.data.addGeoJson). - Drawing Tools:
terra-draw+terra-draw-google-maps-adapter(isolatedData: true). - Large-Scale Point/Hex Visualization:
@deck.gl/google-maps(GoogleMapsOverlay) with@deck.gl/layers(ScatterplotLayer) and@deck.gl/aggregation-layers(HexagonLayer), guarded byWebGL2availability checks.
NEVER introduce any of the following:
google.maps.Markeror<map-marker>google.maps.places.Autocomplete,SearchBox,PlacesService, orAutocompleteServicegmp-placeselect(retired event — always usegmp-select)DirectionsService,DirectionsRenderer, orDistanceMatrixService(always useRoute.computeRoutesor Routes API v2)google.maps.drawing(always use Terra Draw)google.maps.visualization.HeatmapLayer(always use@deck.gl/aggregation-layersHeatmapLayerwithGoogleMapsOverlay)@googlemaps/js-api-loaderv1new Loader(...).load()PinElement.elementorPinElement.glyph(passPinElementdirectly and useglyphText/glyphSrc)@googlemaps/extended-component-library(<gmpx-*>) or banned wrapper packages (google-map-react,@react-google-maps/api,use-places-autocomplete,@googlemaps/react-wrapper)- Hardcoded API keys in source files,
environment.ts, or.env.example(always injectGOOGLE_MAPS_API_KEYat runtime viaserve-dist.mjs/env-config.js) innerHTML,outerHTML,document.write, orinsertAdjacentHTML(usedocument.createElement,textContent,replaceChildren)- Binding local servers to
0.0.0.0(strictly bind to127.0.0.1)
- Solution:
spatial-intelligence— Enterprise GIS Workbench, GeoJSON Zones & Deck.gl Analytics (Advanced Spatial Analytics & 3D) - Framework:
angular(Angular Standalone Components + TypeScript (@angular/google-maps)) - Transport Mode: Client + Local Server Proxy (
serve-dist.mjs) - API Key Tier: Billed Google Cloud key required (Elevation API (REST))
- Environment Variable:
GOOGLE_MAPS_API_KEYin.env - Detected JS Libraries:
core,elevation,maps,marker,places - Geo Libraries:
deck.gl,terra-draw - Server
/api/*Proxy Routes:/api/elevation,/api/places/search - Run Note: Run
npm run build && node serve-dist.mjs --host 127.0.0.1 --port 4176(serve-dist.mjsinjects/env-config.jsfrom.env; plainng serveuses an empty stub).
- Map & Markers:
src/app/app.component.html,src/app/app.component.ts,src/app/services/spatial-gis.service.ts - Places, Routes & Geo Services:
src/app/app.component.ts,src/app/services/spatial-gis.service.ts - Backend API Proxy:
serve-dist.mjs - App Entry & Config:
src/app/app.component.ts
# Install
npm install --no-audit --no-fund
# Typecheck
npx tsc --noEmit && node --check serve-dist.mjs
# Build
npm run build
# Serve (loopback 127.0.0.1)
node serve-dist.mjs --host 127.0.0.1 --port 4176- Parent Solution:
../README.md·../AGENTS.md·../verification_report.md - Catalog Routers:
../../AGENTS.md·../../BY_API.md·../../BY_FRAMEWORK.md·../../INDEX.md - Other Frameworks:
static-vanilla-js,react-vite,nextjs,sveltekit,vue-vite,python-fastapi,nodejs-web