hyperleaflet icon indicating copy to clipboard operation
hyperleaflet copied to clipboard

What's next?

Open cemrehancavdar opened this issue 2 years ago • 6 comments

What are next?

First of all it's important to note that not all changes are guaranteed.

  • [x] Splitting the Add Remove detection from the core will be a top priority. This update will allow for advanced functionality like updating geometry positions without the need to remove and add them in Leaflet. Additionally, it will enable easy modification of data-geometry through browser development tools for testing purposes.

  • [ ] Adding more curical parts of leaflet, such as styling geometries and layer groups etc.

  • [ ] Configuration support will be implemented, allowing users to customize events, enable debug mode, and configure the hyperleaflet map itself.

  • [ ] Introducing the hyperleaflet-tools repository. This repository will contain helpful JavaScript files (and possibly HyperScript files) such as hyperleaflet-polygon-add.js. This particular file will enable the creation of client-side polygons and their saving through a form.

  • [ ] Debug mode will be introduced, providing extensive logging of information, warnings, and errors based on the selected level option.

  • [ ] The core of hyperleaflet will aim to remain simple and lightweight. Efforts will be made to achieve a plugin-like structure, presenting a challenging task.

Please let me know if you need further clarification or have any additional questions!

cemrehancavdar avatar Jul 05 '23 17:07 cemrehancavdar

Hi, I find your library very promising. I cannot understand if you already implemented fitBounds from Leaflet or plan to implement it in the future. Thanks a lot for your work

applewebbo avatar Oct 23 '23 19:10 applewebbo

Hi @applewebbo,

I'll change a little bit but it will be more or less in next version. You can use window's hyperleaflet object to achieve this. hyperleaflet.map is the native leaflet map object.

hyperleaflet.map.fitBounds(...) will work for your needs. (no need window.hyperleaflet... because attributes of window object are global :) ) I'll add some of them directly to hyperleaflet so you will be able to use it like: hyperleaflet.fitBounds()

Also next version will change native leaflet objects to start with "_" it will be hyperleaflet._map for the things to use with hyperleaflet but most of things that hyperleaflet must have won't need it.

cemrehancavdar avatar Oct 24 '23 17:10 cemrehancavdar

Great to know.. thanks a lot for your explanation. I'll implement asap in my project and keep watching the updates of this repo. Great work

applewebbo avatar Oct 24 '23 18:10 applewebbo

I'm very impressed by this library. Is there a way to add style information as well as geometry? Say, if I wanted to shade polygons by some attribute?

andrewgryan avatar Feb 29 '24 07:02 andrewgryan

I'm preparing a PR to add support for imageOverlay, I'm thinking of extending the Geometry code to handle imageUrl and latLngBounds in the HTML props. How does that fit with your vision for the future of this library?

Should I start a Image directory and build out the functionality there?

andrewgryan avatar Apr 13 '24 12:04 andrewgryan

Actually, tweaks to the existing createLeafletObject`` and changeLeafletObject` look like the right place to put it

andrewgryan avatar Apr 13 '24 14:04 andrewgryan