v1.7.1 - Form Restoration & Marker Customization 🚀
This release introduces a powerful new form restoration feature, simplifies state management, and adds extensive marker customization options. These updates ensure a smoother user experience and greater flexibility for developers.
📚 Documentation Updates
The README has been updated to include:
- Instructions for implementing browser-native form restoration.
- Best practices for marker customization using the new methods.
- Updated configuration options for seamless integration.
⚡ Enhancements
Feature: Form Restoration
- Implemented a browser-native "form restoration" mechanism for maps.
- Saves the map's lat,lng, andzoomlevels in an invisible<input>.
- Leverages the pageshowevent to restore map data when the user navigates back to the page.
 
- Saves the map's 
New Features: Marker Customization
Added methods for dynamic marker customization:
- markerHtml
- markerIconUrl
- markerIconSize
- markerIconClassName
- markerIconAnchor
Refactor: Simplified State Management
- Updated methods:
- setMarkerRange
- setFormRestorationState
 
🐛 Bug Fixes
- Issue Fixed: Previously, the map's center position was used instead of the marker's position. This update aligns the behavior with user expectations.
🛠️ Chore
- Updated project documentation to reflect the new features and best practices for form restoration and marker handling.
- Enhanced the build script for seamless integration.
🙌 Special Thanks
A huge shoutout to @artumi-richard for their invaluable contributions to this release! 💖