mikebronner / nova-map-marker-field

Provides an visual interface for editing latitude and longitude coordinates.
MIT License
131 stars 36 forks source link

Nova 4 support (needs testing) #66

Closed tanerkay closed 2 years ago

tanerkay commented 2 years ago

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:

Other changes:

Issues:

The workaround was adding the following to the top of resources/js/field.js:

import 'leaflet/dist/leaflet-src.esm';
import 'leaflet/dist/images/marker-icon-2x.png';
import 'leaflet/dist/images/marker-icon.png';
import 'leaflet/dist/images/marker-shadow.png';
tanerkay commented 2 years ago

Related issue: https://github.com/GeneaLabs/nova-map-marker-field/issues/64

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert and fixes 1 when merging c21e1285ccaf532bed68635d52fc7589e74feaed into 876690787ed8bbfe85fb4c98d726e6e621b81434 - view on LGTM.com

new alerts:

fixed alerts:

lgtm-com[bot] commented 2 years ago

This pull request fixes 1 alert when merging 3e8485be844b7966e27ab838f91299453f3de60f into 876690787ed8bbfe85fb4c98d726e6e621b81434 - view on LGTM.com

fixed alerts:

mziraki commented 2 years ago

@mikebronner hi, any update?

mostafaznv commented 2 years ago

I wanted to add an ability to draw and store polygons but I'm waiting to accept this PR

mikebronner commented 2 years ago

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.

mikebronner commented 2 years ago

I wanted to add an ability to draw and store polygons

@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.

mziraki commented 2 years ago

@mikebronner it does not work at all! the field does not show!

mikebronner commented 2 years ago

Thanks for the feedback, I'll revert it.

mikebronner commented 2 years ago

I'm open to another PR that introduces Nova 4 support.

mostafaznv commented 2 years ago

I'm open to another PR that introduces Nova 4 support.

I would do it in coming days.

egerb commented 2 years ago

@mikebronner it does not work at all! the field does not show! yeap, because of ncaught Error: Cannot find module 'laravel-nova'

mostafaznv commented 2 years ago

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. After that, maybe I put some extra time to make good PR for this package too.

egerb commented 2 years ago

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. After that, maybe I put some extra time to make good PR for this package too.

Could you share with it, if possible