hosuaby / Leaflet.SmoothMarkerBouncing

Smooth animation of marker bouncing for Leaflet.
BSD 2-Clause "Simplified" License
146 stars 28 forks source link

Simply including your js file creates exception for jquery. #22

Closed MACscr closed 3 years ago

MACscr commented 5 years ago

I only have the js file linked to in the html with without adding any other js to the page to use it and it creates the following exception:

image

Im using leaflet 1.5.1 and jquery 3.4.1

hosuaby commented 5 years ago

The last time this library was updated, it was on Leaflet 1.3.1. I am not sure it still compatible

hosuaby commented 3 years ago

v2.0.0 is garanted to be compatible with Leaflet 1.7.x.

But I think, the problem here, is that plugin was not imported right. The right way:

import L from 'leaflet';
import 'leaflet.smooth_marker_bouncing/dist/bundle';