Skip to content

1.7.1

Latest
Compare
Choose a tag to compare
@mohaphez mohaphez released this 30 Dec 10:38
be9c68d

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, and zoom levels in an invisible <input>.
    • Leverages the pageshow event to restore map data when the user navigates back to the page.

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! 💖