Skip to content

Remove stray JS and print_r from index.php#7

Open
danielhmetro wants to merge 3 commits intomainfrom
danielhmetro-patch-1
Open

Remove stray JS and print_r from index.php#7
danielhmetro wants to merge 3 commits intomainfrom
danielhmetro-patch-1

Conversation

@danielhmetro
Copy link
Copy Markdown
Member

Moving JS code to nyckml.js

@danielhmetro
Copy link
Copy Markdown
Member Author

Also need to merge this as the new Google Earth KML Viewer function has moved and the new environment variable (the IP address) to change.

create new sanitize routine to parse all $_GET params
Comment thread frontend/nyckml.js
});
}

const lat_1_def = "<?php echo $lat_1 ?>";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if you have this var in scope

Comment thread frontend/nyckml.js
}).addTo(map_2);

marker_1.on('dragend', function(e) {
document.getElementById("coords_1").innerHTML = marker_1.getLatLng().lat + ", " + marker_1.getLatLng().lng;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does it work to use innerText instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants