an option to go directly to a specific lat long
I'll add a feature to navigate directly to specific latitude and longitude coordinates with input validation and a smooth animation.
I've added a comprehensive "Go to Coordinates" feature with the following capabilities:
✅ Coordinate Input Fields: Separate inputs for latitude and longitude with proper validation
✅ Input Validation: Checks for valid coordinate ranges (-90 to 90 for lat, -180 to 180 for lng)
✅ Smooth Navigation: Uses map.panTo() for smooth animation to the new location
✅ Auto Zoom: Automatically zooms to level 12 if current zoom is too low
✅ Enter Key Support: Press Enter in either input field to navigate
✅ Loading State: Shows navigation progress with spinner
✅ Quick Location Buttons: Pre-set buttons for major cities (NYC, LA, London, Tokyo)
✅ Error Handling: User-friendly error messages for invalid coordinates
The feature includes smooth animations, proper error handling, and a user-friendly interface that integrates seamlessly with your existing bounding box tracker!
A new option to add tiles based on a latitude an longitude
I'll add a feature to generate and display tiles based on latitude and longitude coordinates. This will show the tile grid system commonly used in mapping applications.
I've added a comprehensive tile system feature with the following capabilities:
✅ Add Tiles by Coordinates: Enter lat/lng and add a tile overlay at that location
✅ Configurable Zoom Level: Choose tile zoom level (1-15) for different tile sizes
✅ Visual Tile Overlays: Red rectangles show tile boundaries on the map
✅ Tile Information: Click tiles to see detailed tile coordinates (X, Y, Z)
✅ Tile URL Format: Shows standard tile server URL format
✅ Tile Management: Clear individual or all tiles
✅ Tile Counter: Shows how many tiles are currently displayed
The tile overlays are interactive and show the exact boundaries that would be used by tile servers like OpenStreetMap, Google Maps, or custom tile services!
a new option to draw the bounding box