-
-
Notifications
You must be signed in to change notification settings - Fork 36
Conversation
Related issue: #64 |
This pull request introduces 1 alert and fixes 1 when merging c21e128 into 8766907 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 1 alert when merging 3e8485b into 8766907 - view on LGTM.com fixed alerts:
|
@mikebronner |
I wanted to add an ability to draw and store polygons but I'm waiting to accept this PR |
Hi sorry for the delay, guys. I haven't been using Nova anymore for a while. Let me merge this, but as I cannot test this myself, please let me know if it breaks anything, so I can revert it. |
@mostafaznv that is cool functionality, for sure, but it goes beyond the scope of what this field is meant for. I would recommend creating your own field for marking on a map. I just wanted to let you know before you started work on a PR for that. |
@mikebronner it does not work at all! the field does not show! |
Thanks for the feedback, I'll revert it. |
I'm open to another PR that introduces Nova 4 support. |
I would do it in coming days. |
|
I've tried to fix it. but due to some SSR features in vue-leaflet (vue 3) plugin, It didn't work as I expected. So I've decided to create a new package based on other map libraries with some new features. If will be published soon. |
Could you share with it, if possible |
Thanks @mikebronner for the package, has been of great use so far! I've tried to tackle the changes necessary for Nova 4.x, and hoping for some feedback and testing help to get this ready to go.
Changes necessary to support:
vue2-leaflet
->@vue-leaflet/vue-leaflet
vue2-leaflet-geosearch
as a first party component as the vendor version only supports Vue 2.xOther changes:
Issues:
POINT
field rather than a separate latitude and longitude field, but have tried to keep those changes separate from the PR.dist/
directory, e.g.node_modules_leaflet_dist_images_marker-icon-2x_png.js
. These are files that would otherwise be loaded in through promises. My workaround was to import some of the files preemptively, but it would be great to understand the root cause.The workaround was adding the following to the top of
resources/js/field.js
: