angular-load icon indicating copy to clipboard operation
angular-load copied to clipboard

ReferenceError - undefined function

Open Rex90 opened this issue 8 years ago • 1 comments

I'm using anuglar-load to load the SlidingMarker API after my google maps API has loaded asycnohornly in an angular controller. https://github.com/terikon/marker-animate-unobtrusive#api

This does not throw an error but when I try to use the plugin in the controller I get a ReferenceError. Interestly, I can call new SlidingMarker inside the chrome developer console without any issues. ionic.bundle.js:26771 ReferenceError: SlidingMarker is not defined


            var marker = new SlidingMarker({
                position: myLatlng,
                map: map,
                title: "I'm sliding marker",
                duration: 2000,
                easing: "easeOutExpo"
            });

IS there some scoping issue going on here?

Rex90 avatar Jul 03 '16 12:07 Rex90

I have the same issue! I was wondering the exact same thing - what am I not getting here? In the meantime, I am forced to explore other options. Can someone update us at least if there is a timeframe for investigation this? Thanks!!

j2kenton avatar Aug 21 '18 08:08 j2kenton