Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #25706 -- Moved GIS-related JavaScript out of templates #7205

Closed
wants to merge 3 commits into from

Conversation

claudep
Copy link
Member

@claudep claudep commented Sep 3, 2016

No description provided.

var divs = document.querySelectorAll("div.geodjangoDivMap");
for (var i = 0; i < divs.length; ++i) {
var options = {
geom_name: divs[i].getAttribute('data-gis-geomname'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JQuery is available here so

$('.geodjangoDivMap').each(function(){
    var $this = $(this);
    var options = $this.data();
    ...
});

@@ -384,3 +384,61 @@
};
window.MapWidget = MapWidget;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't need to go on Window now.

@LuRsT
Copy link
Contributor

LuRsT commented Sep 17, 2019

@claudep will you be picking this up again?

@felixxm
Copy link
Member

felixxm commented Mar 17, 2020

Closing due to inactivity.

@felixxm felixxm closed this Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants