• Hi Patrick,

    thanks for your nice plugin. I have the following problem: In IE 11 the single location map works/shows a map, but the [locations_map] shortcode does not. It throws an JS Syntax error, but I can’t find the solution.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    What is the error?
    The map displays perfectly in much better browsers such as Chrome and Safari. I am not using IE. Haven’t for years.

    Thread Starter ddmarker

    (@ddmarker)

    I couldn’t agree with you more, but one of my clients is using it…

    In the generated script “var locations=…” there is a line “var marker=new L.marker([locations[i][1],locations[i][2]],{icon:thisIcon},).addTo(thisMap)…” and IE just says Syntax Error at the position behind “{icon:thisIcon},”

    Thank you for your help!

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I couldn’t agree with you more

    Hehehe 🙂

    Since I can not test it for you, could you please do a little test yourself?
    Please delete the comma after {icon:thisIcon}.

    I think jQuery then expects another parameter and better browsers might have a fall-save builtin. 😉

    Thread Starter ddmarker

    (@ddmarker)

    Yes, this seems to be the problem. Can you do anything about it?

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Of course I can 😉
    I will remove the comma in the next update. I will release it later this week. There are many new features coming up. 😉

    For now, you can leave the comma out in your own copy, so IE11 will display the map correctly.

    Thread Starter ddmarker

    (@ddmarker)

    Thanks so much, that solved the case!

    Hello,

    I have the same problem.

    Where do you find the script “var marker=new L.marker([locations[i][1],locations[i][2]],{icon:thisIcon},).addTo(thisMap)…” ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Map from [locations_map] not showing in IE11’ is closed to new replies.