angular-load
angular-load copied to clipboard
ReferenceError - undefined function
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?
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!!