none
MapLayer.SetPosition is not my solution. advice? RRS feed

  • Question

  • Hello,
    I have a question.

    I have an image (imageLayer) and a timer that every three seconds move the image to a new coordinate.

    Is it correct to delete the "old" layer, then create a new layer with the new image again ?

    Yes, every time I add the image to the defined map layer
    imageLayer.AddChild(image, location, position)
    and add the image layer to the map
    myMap.Children.Add(imageLayer)

    Or is there a more correct method? I tried to use MapLayer.SetPosition (myMapLayer, newlocation) but the results are not what I wanted.
    Advice?

    Thank you.

    Friday, July 24, 2020 4:29 PM

All replies