Commit 29c26725 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

multipoint bugfix

parent 862ea9f6
...@@ -161,13 +161,13 @@ ...@@ -161,13 +161,13 @@
var locationoptions = {}; var locationoptions = {};
var initials = 'fo'; var initials = 'fo';
var type = 'object'; var type = 'object';
locationoptions['single'] = false; locationoptions['single'] = true;
locationoptions['multiple'] = false; locationoptions['multiple'] = true;
locationoptions['line'] = false; locationoptions['line'] = true;
locationoptions['polygon'] = {}; locationoptions['polygon'] = {};
locationoptions['polygon']['show'] = true; locationoptions['polygon']['show'] = true;
// locationoptions['polygon']['name'] = 'Area'; // locationoptions['polygon']['name'] = 'Area';
locationoptions['circle'] = true; locationoptions['circle'] = false;
locationoptions['type'] = type; locationoptions['type'] = type;
locationoptions['initials'] = initials; locationoptions['initials'] = initials;
var locationid = 'locationCard'; var locationid = 'locationCard';
......
...@@ -284,8 +284,8 @@ var STWkit; ...@@ -284,8 +284,8 @@ var STWkit;
map.fire('draw:canceled'); map.fire('draw:canceled');
}; };
finishButton.style.display = 'none'; finishButton.style.display = 'none';
// 3 is multipoint type in coordinates control // 4 is multipoint type in coordinates control
if (self.control.getType() == 3) if (self.control.getType() == GeometryType.MULTIPOINT)
finishButton.style.display = ''; finishButton.style.display = '';
var cancelButton = L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel); var cancelButton = L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel);
cancelButton.textContent = 'Cancel'; cancelButton.textContent = 'Cancel';
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -310,8 +310,8 @@ module STWkit { ...@@ -310,8 +310,8 @@ module STWkit {
map.fire('draw:canceled'); map.fire('draw:canceled');
}; };
finishButton.style.display = 'none'; finishButton.style.display = 'none';
// 3 is multipoint type in coordinates control // 4 is multipoint type in coordinates control
if (self.control.getType() == 3) finishButton.style.display = ''; if (self.control.getType() == GeometryType.MULTIPOINT) finishButton.style.display = '';
var cancelButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel); var cancelButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel);
cancelButton.textContent = 'Cancel'; cancelButton.textContent = 'Cancel';
cancelButton.onclick = function (e) { cancelButton.onclick = function (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment