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

multipoint bugfix

parent 862ea9f6
......@@ -161,13 +161,13 @@
var locationoptions = {};
var initials = 'fo';
var type = 'object';
locationoptions['single'] = false;
locationoptions['multiple'] = false;
locationoptions['line'] = false;
locationoptions['single'] = true;
locationoptions['multiple'] = true;
locationoptions['line'] = true;
locationoptions['polygon'] = {};
locationoptions['polygon']['show'] = true;
// locationoptions['polygon']['name'] = 'Area';
locationoptions['circle'] = true;
locationoptions['circle'] = false;
locationoptions['type'] = type;
locationoptions['initials'] = initials;
var locationid = 'locationCard';
......
......@@ -284,8 +284,8 @@ var STWkit;
map.fire('draw:canceled');
};
finishButton.style.display = 'none';
// 3 is multipoint type in coordinates control
if (self.control.getType() == 3)
// 4 is multipoint type in coordinates control
if (self.control.getType() == GeometryType.MULTIPOINT)
finishButton.style.display = '';
var cancelButton = L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel);
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 {
map.fire('draw:canceled');
};
finishButton.style.display = 'none';
// 3 is multipoint type in coordinates control
if (self.control.getType() == 3) finishButton.style.display = '';
// 4 is multipoint type in coordinates control
if (self.control.getType() == GeometryType.MULTIPOINT) finishButton.style.display = '';
var cancelButton = <HTMLButtonElement>L.DomUtil.create('button', 'uk-button uk-button-small', exitPanel);
cancelButton.textContent = 'Cancel';
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