refs #6 save symbol ok

merge-requests/1/head
Julien Veyssier 2016-12-07 00:40:41 +01:00
parent 3967909d97
commit 1751570270
6 changed files with 8 additions and 2 deletions

View File

@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
[#2](https://gitlab.com/eneiluj/gpxedit-oc/issues/2) @eneiluj
- automatic save/restore options values
[#7](https://gitlab.com/eneiluj/gpxedit-oc/issues/7) @eneiluj
- load/save/edit symbol value (sym)
[#6](https://gitlab.com/eneiluj/gpxedit-oc/issues/6) @eneiluj
### Changed
- detach marker and tooltip styling option

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

View File

@ -341,6 +341,7 @@ function generateGpx(){
var comment = gpxedit.layersData[id].comment;
var description = gpxedit.layersData[id].description;
if (layer.type === 'marker'){
var symbol = gpxedit.layersData[id].symbol;
var lat = layer._latlng.lat;
var lng = layer._latlng.lng;
var alt = layer._latlng.alt;
@ -357,6 +358,9 @@ function generateGpx(){
if (comment){
gpxText = gpxText + ' <cmt>'+comment+'</cmt>\n';
}
if (symbol){
gpxText = gpxText + ' <sym>'+symbol+'</sym>\n';
}
if (description){
gpxText = gpxText + ' <desc>'+description+'</desc>\n';
}

View File

@ -67,8 +67,8 @@ echo '</p>'."\n";
<br/>
<label>Waypoint style:</label>
<select id="markerstyleselect">
<option value="s"><?php p($l->t('point')); ?></option>
<option value="p"><?php p($l->t('pin')); ?></option>
<option value="s"><?php p($l->t('point')); ?></option>
<option value="m"><?php p($l->t('marker')); ?></option>
</select>
<br/>
@ -78,7 +78,7 @@ echo '</p>'."\n";
<option value="p"><?php p($l->t('permanent')); ?></option>
</select>
<br/>
<input id="symboloverwrite" type="checkbox"></input>
<input id="symboloverwrite" type="checkbox" checked></input>
<label for="symboloverwrite">Use gpx symbol if set</label>
<br/>
<hr/>