Initialized rclk object. While using the "layer" command, the feedbac… (#176)

* initialized rclk as an empty object
This commit is contained in:
Sebastian 2021-09-16 05:39:06 -04:00 committed by GitHub
parent 7fa64ee1f1
commit 7957c9770d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,7 +662,7 @@ map.on('moveend', function() {
var addmenu = "<b>Add marker</b><br><input type='text' id='rinput' autofocus onkeydown='if (event.keyCode == 13) addThing();' placeholder='name (,icon, layer, colour, heading)'/>"; var addmenu = "<b>Add marker</b><br><input type='text' id='rinput' autofocus onkeydown='if (event.keyCode == 13) addThing();' placeholder='name (,icon, layer, colour, heading)'/>";
var rightmenuMap = L.popup({keepInView:true, minWidth:250}).setContent(addmenu); var rightmenuMap = L.popup({keepInView:true, minWidth:250}).setContent(addmenu);
var rclk; var rclk = {};
var hiderightclick = false; var hiderightclick = false;
var addThing = function() { var addThing = function() {
var thing = document.getElementById('rinput').value; var thing = document.getElementById('rinput').value;