refs #15 defensive check in restoreOptions
parent
a12552aae6
commit
b37dad5ca6
|
@ -1280,6 +1280,7 @@
|
|||
t('gpxedit', 'Error'));
|
||||
});
|
||||
optionsValues = $.parseJSON(optionsValues);
|
||||
if (optionsValues) {
|
||||
if ( optionsValues.markerstyle !== undefined
|
||||
&& symbolIcons.hasOwnProperty(optionsValues.markerstyle)
|
||||
) {
|
||||
|
@ -1298,6 +1299,7 @@
|
|||
gpxedit.restoredTileLayer = optionsValues.tilelayer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function saveOptions() {
|
||||
var optionsValues = {};
|
||||
|
|
Loading…
Reference in New Issue