Skip to content

Geopointers in array of map are imported as numbers  #83

@Pascaltje

Description

@Pascaltje

I just exported an collection and try to import it but when I do the geopointers are numbers and not as geopointer

my import code:
restore('export.json', { dates: [], geos: ['location', 'polylines', 'centerPoint'], refs: [], })

The small version of the json I try to import:

{
    "locations": {
        "doc": {
	    "initialZoom": "15",
            "centerPoint": { //works fine
                "_latitude": 51.5883, 
                "_longitude": 4.77626
            },
            "polylines": [{ //works fine
                    "_latitude": 51.58859,
                    "_longitude": 4.77626
                }, {
                    "_latitude": 51.58895,
                    "_longitude": 4.77604
                }
            ],
            "markers": [{
                    "title": "Punt 1",
                    "location": {
                        "_latitude": 51.58858, //inserted as number
                        "_longitude": 4.7764  //inserted as number
                    }
                }, {
                    "title": "Punt 2",
                    "location": { 
                        "_latitude": 51.58878,  //inserted as number
                        "_longitude": 4.77624  //inserted as number
                    } 
         	}
            ]
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions