[uMap] various problems editing maps
Yohan Boniface
hi at yohanboniface.me
Mon Mar 7 15:35:36 UTC 2016
Do you have a custom icon URL including formatting?
On 07/03/2016 16:32, Harald Linden wrote:
> Am 07.03.2016 um 15:43 schrieb Yohan Boniface:
>> Can you share the console log?
>
> Yes, of course. This happens when I click the "marker"-button:
>
> Uncaught Error: No value provided for variable {name}(anonymous
> function) @ 28e5f8d7eaae.js:7L.Util.template @
> 28e5f8d7eaae.js:7L.Storage.Icon.L.DivIcon.extend.formatUrl @
> 27f2d290e8f9.js:86L.Storage.Icon.L.DivIcon.extend._getIconUrl @
> 27f2d290e8f9.js:83L.Storage.Icon.Default.L.Storage.Icon.extend.createIcon
> @ 27f2d290e8f9.js:86L.Marker.L.Class.extend._initIcon @
> 28e5f8d7eaae.js:188L.Storage.Marker.L.Marker.extend._initIcon @
> 27f2d290e8f9.js:122L.Marker.L.Class.extend.onAdd @
> 28e5f8d7eaae.js:184L.Map.L.Class.extend._layerAdd @
> 28e5f8d7eaae.js:122L.Map.L.Class.extend.addLayer @
> 28e5f8d7eaae.js:82L.LayerGroup.L.Class.extend.addLayer @
> 28e5f8d7eaae.js:243L.FeatureGroup.L.LayerGroup.extend.addLayer @
> 28e5f8d7eaae.js:251L.Storage.DataLayer.L.Class.extend.addLayer @
> 27f2d290e8f9.js:168L.S.Editable.L.Editable.extend.connectCreatedToMap
> @ 27f2d290e8f9.js:203L.Editable.L.Class.extend.startMarker @
> 28e5f8d7eaae.js:501L.Storage.Map.include.startMarker @
> 27f2d290e8f9.js:277handler @ 28e5f8d7eaae.js:358
>
> This happens at:
>
> return((!existingUrl||existingUrl.indexOf('?')===-1)?'?':'&')+params.join('&');},template:function(str,data){return
> str.replace(/\{ *([\w_]+) *\}/g,function(str,key){var
> value=data[key];if(value===undefined){throw new Error('No value
> provided for variable '+str);}else if(typeof
> value==='function'){value=value(data);}
>
> ...and when I try to cancel the edit after that, this happens:
>
> Uncaught TypeError: Failed to execute 'removeChild' on 'Node':
> parameter 1 is not of type 'Node'.L.Marker.L.Class.extend._removeIcon
> @ 28e5f8d7eaae.js:198L.Marker.L.Class.extend.onRemove @
> 28e5f8d7eaae.js:185L.Storage.FeatureMixin.onRemove @
> 27f2d290e8f9.js:117L.Map.L.Class.extend.removeLayer @
> 28e5f8d7eaae.js:84L.LayerGroup.L.Class.extend.eachLayer @
> 28e5f8d7eaae.js:247L.LayerGroup.L.Class.extend.onRemove @
> 28e5f8d7eaae.js:247L.Map.L.Class.extend.removeLayer @
> 28e5f8d7eaae.js:84L.Storage.DataLayer.L.Class.extend.hide @
> 27f2d290e8f9.js:185L.Storage.DataLayer.L.Class.extend.reset @
> 27f2d290e8f9.js:179(anonymous function) @
> 27f2d290e8f9.js:267L.Storage.Map.include.reset @
> 27f2d290e8f9.js:266L.Storage.Map.include.askForReset @
> 27f2d290e8f9.js:276handler @ 28e5f8d7eaae.js:358
>
> This happens at:
>
> this._map._panes.markerPane.removeChild(this._icon);this._icon=null;},_removeShadow:function(){if(this._shadow){this._map._panes.shadowPane.removeChild(this._shadow);}
>
> Hope that helps!
>
> Harald
>
> _______________________________________________
> Umap mailing list
> Umap at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/umap
>
More information about the Umap
mailing list