Skip to content

Releases: dotswan/filament-map-picker

1.8.0

10 Feb 16:09
6b5f6b9
Compare
Choose a tag to compare

Advanced Map Customization & GeoJSON Enhancements 🌍

This release brings expanded map configuration options, improved circle drawing support, and enhanced GeoJSON handling. Additionally, we’ve updated the bundled Leaflet library for better performance and compatibility. These updates provide greater flexibility, more precise interactions, and a smoother mapping experience.


📚 Documentation Updates

The README has been updated to include:

  • New configuration options for advanced map customization.
  • Instructions for using snappable, drawRectangle, and drawText methods.
  • Best practices for handling GeoJSON data and circle-specific properties.

⚡ Enhancements

🚀 Feature: Expanded Map Picker Configuration

  • Improved customization options in README and MapEntry.
  • Introduced new methods for interactive map features:
    • snappable
    • drawRectangle
    • drawText
  • Enhanced JavaScript handling for map interactions and state management.
  • Updated default settings for better flexibility and control.

🔵 New Features: Circle Drawing & GeoJSON Handling

  • Added support for storing and restoring circle layer data.
  • Enhanced GeoJSON generation to include circle-specific properties.
  • Updated layer creation and editing to preserve circle metadata.
  • Refined coordinate and state update logic for improved interactions.

📌 Refactor: Leaflet Library Update & Code Cleanup

  • Minor refactoring of the Leaflet bundled JavaScript.
  • Updated variable names while maintaining core functionality.
  • Ensured full compatibility with the existing map picker implementation.

🐛 Bug Fixes

  • Fixed inconsistencies in circle metadata preservation during edits.
  • Improved coordinate updates to ensure smoother map interactions.

🛠️ Chore

  • Updated project documentation to reflect new features and best practices.
  • Improved build scripts for seamless integration.

🙌 Special Thanks

A huge shoutout to @thiagolp90 for their invaluable contributions to this release! 💖

1.7.1

30 Dec 10:38
be9c68d
Compare
Choose a tag to compare

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

1.6.0

29 Nov 14:30
285158a
Compare
Choose a tag to compare

v1.6.0 - Marker Interaction Enhancements 🎉

This release introduces significant improvements to marker interaction on the map, along with several updates and fixes to enhance overall usability and code clarity.


📚 Documentation Updates

  • The README has been updated to reflect:
    • New features.
    • Updated configuration options.
    • Usage instructions for range and clickable features.

⚡ Enhancements

  • MapEntry Class
    Improved functionality and structure for mapping operations.

  • Alias Updates
    Refined the alias name for Leaflet to improve clarity and compatibility within the codebase.


🐛 Bug Fixes

  • Fix rangeSelectField Null Guard
    Resolved missing null guard in rangeSelectField logic.
    Fixes #47.

🙌 Special Thanks

Big thanks to @artumi-richard for their invaluable contributions to this release! 💖

1.5.0

19 Nov 15:35
68eee2a
Compare
Choose a tag to compare

Marker Interaction Improvements (from @artumi-richard 🎉)

This release introduces two exciting new optional features:

  1. Clickable Marker Movement:
    Users can now click on the map to reposition the marker effortlessly.
  2. Dynamic Range Visualization:
    A circle can be displayed around the marker, representing a range that works in conjunction with a field in the form.

These features enhance map interactivity and provide new ways to visualize spatial data.


Special Thanks

Big thanks to @artumi-richard for their contribution!

1.4.0

07 Oct 07:02
34a2c8b
Compare
Choose a tag to compare

New Features:

  • Geoman Toolbar Integration:
    We’ve added the Geoman toolbar to enhance the mapping functionality. This provides users with a full suite of tools for seamless map editing and management, improving efficiency and user experience when interacting with maps.

Documentation Updates:

  • README Update:
    The README file has been updated to reflect the new Geoman toolbar features. This includes detailed instructions and usage guidelines to help users get the most out of the new map editing tools.

This release focuses on enhancing the mapping experience while ensuring clear and accessible documentation.

1.3.0

13 Sep 08:12
5d1ed9f
Compare
Choose a tag to compare

This release enhances the map's live location functionality by making it more flexible, unrestricted, and configurable. It addresses issue #26 and introduces several improvements to the map's real-time location tracking.

Changes

  • Removed Restriction on Current Location: The restriction that required the map to be draggable to obtain the current location has been removed.
  • Enhanced liveLocation Option: The liveLocation option is now fully configurable, allowing real-time location updates at specified intervals, regardless of the map's draggable state.

Impact

  • Improved User Experience: Users can now receive real-time location updates without needing the map to be draggable.
  • Customization: Developers can configure the interval for obtaining live location updates, offering more control over this feature.

Additional Updates

  • Removed unused comments folder.
  • Added .phpunit.cache/test-results to .gitignore.
  • Updated the README to reflect the new liveLocation options.

Special Thanks

Big thanks to @enriquemdev for their contribution!

1.2.5

29 Jun 09:43
7893ec9
Compare
Choose a tag to compare

Fixes:

  • Updated JS functionality for improved performance.
  • Removed extra CSS styles for a cleaner codebase.

1.2.4

04 Jun 14:45
0c1fa9e
Compare
Choose a tag to compare
  • Documentation:
    • Updated the README document to reflect new features and improvements.

1.2.3

04 Jun 14:43
32763fd
Compare
Choose a tag to compare
  • Fixes:
    • Added optional chaining for variables to enhance error handling and code robustness.
  • Features:
    • Introduced a default method to define a default location point for map functionalities.
    • Added MapEntry for displaying map information in infolists.
  • Documentation:
    • Updated the README document to reflect new features and improvements.

1.2.2

09 Apr 10:50
32763fd
Compare
Choose a tag to compare
  • Added extra styles option for custom map field style.