Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

ReferenceError - undefined function #30

Open
Rex90 opened this issue Jul 3, 2016 · 1 comment
Open

ReferenceError - undefined function #30

Rex90 opened this issue Jul 3, 2016 · 1 comment

Comments

@Rex90
Copy link

Rex90 commented Jul 3, 2016

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?

@j2kenton
Copy link

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!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants