0

I have proof of concept imagemap code using angularjs here.

I am writing something to behave the same as the jquery example that I put together here.

You'll note in the first example doesn't work because the imagemap is being populated by a scope variable, so on page load the image src is a 404. This prevents the imagemap from activating at all. I would really appreciate help understanding how to fix this problem.

singingfish
  • 3,136
  • 22
  • 25

1 Answers1

0

I used the $timeout service to wait for the DOM to be rendered as described here: Slick Carousel with Angular JS

However, I needed to specify an actual timeout value as the default didn't work in my case (for both slick and mapster)

Community
  • 1
  • 1
simp
  • 56
  • 3
  • I ended up using recursion to wait on objects to render. The technique is described here: http://buzzdecafe.github.io/2014/03/20/directive-after-dom/ – simp Sep 30 '14 at 16:51