Hey @rrichardson I have the same issue. I tried creating another function, since I have two instances on a page where I need a map. The first one renders fine but if I click on another I’m in the ocean near Australia 🙂
I think it probably has to do with the each(function() part of the code. We want to make it so that the render_map function is called each time it is needed. Have you figured it out since your post??
John,
OK so the problem turned out to be something with my PHP code later on after this code block – I didn’t properly close a PHP statement. Thanks for the debug options!
Everything works now – thanks a ton!
Hey John,
Its a select field that would only allow one choice. So, for example, a few choices might be: top, left, right, etc. But I’d only allow one to be selected to add the class.
Thanks for looking!