1

I have a problem displaying data relating to schools on a div 'info' when click the marker with leaflet and javascript:

here's the error:

Uncaught TypeError: layer.setStyle is not a function

  • You have two layer.setStyle() calls. Which one of them is failing? Add breakpoints and inspect the value of layer when it fails. – IvanSanchez May 26 '16 at 8:54
  • thank you, I solved the problem,here is the code that works: – user28253 May 26 '16 at 9:03
  • 1
    @user28253 If you solved your problem can answer your question, just submit the answer and mark as answered. If you have another question please open another question, code in the comments is hard to read :( – chrki May 26 '16 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.