How professador/ondeestou works
“Onde Estou” is a browser-based geolocation and map application. Users can locate or enter a position, view it on a map, identify its municipality, and revisit saved positions through history; the app also includes map-click history and measurement controls. The main workflow is orchestrated by script.js, which uses local geographic data and browser storage alongside Leaflet. The README is empty, and excerpts are partial, so some capabilities are represented without inferred implementation links; unsampled API integrations are not asserted.
Main entry points: script.js App interactions · leaflet.measure.js Map measurement · leaflet Leaflet map library · Estados Municipality boundaries
Components 16
Location app
- App interactions
script.js - Position search
script.js - Device location
script.js - Municipality lookup
script.js - Map display
script.js - Map-click history
script.js - History tabs
script.js
Geographic data
- Municipality boundaries
Estados - State names
UFs_nomes.js - State boundaries
BR-Estados.json
Map runtime
- Leaflet map library
leaflet - Map measurement
Leaflet.Measure-master/src/leaflet.measure.js - OpenStreetMap tiles
Position history
- Search history
script.js - Click history
script.js
Other components
- Map user
Connections 18
- Map user → App interactions: uses
- App interactions → Position search: handles search
script.js - App interactions → Device location: gets location
script.js - App interactions → Municipality lookup: looks up area
script.js - Municipality lookup → Municipality boundaries: searches polygons
script.js - Municipality lookup → State names: uses state names
- Municipality lookup → State boundaries: uses boundaries
- App interactions → Map display: plots position
script.js - Map display → Leaflet map library: renders map
script.js - Map display → OpenStreetMap tiles: adds base layer
script.js - Map user → Map-click history: clicks map
script.js - Map-click history → Click history: saves position
script.js - Map user → History tabs: opens history
script.js - History tabs → Search history: reads history
script.js - History tabs → Click history: reads history
script.js - History tabs → Map display: plots selection
script.js - Map measurement → Leaflet map library: extends controls
Leaflet.Measure-master/src/leaflet.measure.js - Map display → Map measurement: offers measurement