forked from MapComplete/MapComplete
Fix bug which blocked uploads
This commit is contained in:
parent
bcf71a601e
commit
2c677ee8a2
4 changed files with 13 additions and 1 deletions
|
@ -22,6 +22,10 @@ export default class OsmApiFeatureSource implements FeatureSource {
|
|||
|
||||
|
||||
public load(id: string) {
|
||||
if(id.indexOf("-") >= 0){
|
||||
// Newly added point - not yet in OSM
|
||||
return;
|
||||
}
|
||||
OsmObject.DownloadObject(id, (element, meta) => {
|
||||
const geojson = element.asGeoJson();
|
||||
geojson.id = geojson.properties.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue