There is the following non-working code:

let object = objectManager.objects.getById(id) if (object) { console.log(object.properties) console.log(object.geometry) console.log(object.options) object.geometry.setCoordinates([latitude, longitude]) } 

Throws an error despite finding an object with a geometry.

 {type: "Point", coordinates: [55.7458, 37.6273]} [Error] object.geometry.setCoordinates is not a function. (In 'object.geometry.setCoordinates([latitude, longitude])', 'object.geometry.setCoordinates' is undefined) 

It seems that it is not GeoObject that is returned, but simply a structure, if it is so possible in the collection it is impossible to programmatically move the label?

    1 answer 1

    In the object manager, you cannot move an existing label. Just delete it and add it again with the new id and new coordinates.

    If you want to move labels using setCoordinates, use regular labels.