How sujancse/google-map-geofence works
Google Maps Geofence is a small JavaScript library for drawing and editing editable polygons on a Google Map. A user supplies map options and coordinates; the library initializes the map, converts coordinates, creates and attaches a polygon, and exposes events and helpers for editing, reverting, inspecting coordinates, and creating map overlays. The README documents these capabilities; the source excerpt shows map setup, polygon drawing, event dispatch, and several helpers, but not every public method implementation.
Main entry points: gmap-v3-geofence.js Geofence API
Components 10
Map and polygon
- Geofence API
gmap-v3-geofence.js - Map setup
gmap-v3-geofence.js - Polygon drawing
gmap-v3-geofence.js
Editing and events
- Polygon events
gmap-v3-geofence.js - Polygon editing
gmap-v3-geofence.js
Coordinates and overlays
- Coordinate conversion
gmap-v3-geofence.js - Coordinate helpers
gmap-v3-geofence.js - Map overlays
gmap-v3-geofence.js
Other components
- Library user
- Google Maps API
Connections 13
- Library user → Geofence API: calls API
README.md - Geofence API → Map setup: initializes
gmap-v3-geofence.js - Map setup → Google Maps API: creates map
gmap-v3-geofence.js - Geofence API → Coordinate conversion: converts input
gmap-v3-geofence.js - Geofence API → Polygon drawing: draws polygon
gmap-v3-geofence.js - Polygon drawing → Google Maps API: creates polygon
gmap-v3-geofence.js - Polygon drawing → Polygon events: registers events
gmap-v3-geofence.js - Polygon events → Library user: dispatches callbacks
README.md - Library user → Polygon editing: edits or reverts
README.md - Library user → Coordinate helpers: requests coordinates
README.md - Library user → Map overlays: creates overlays
README.md - Polygon editing → Google Maps API: updates polygon
- Map overlays → Google Maps API: creates overlays