AnsweredAssumed Answered

SetViewPointCenter crashes

Question asked by on Oct 3, 2017
Latest reply on Oct 3, 2017 by

Hi, I'm trying to place a cross on the map to show my system's position, and then to center the map around it.

I manage to display the cross at the correct place, but I can't get the map to center around it. The call to setViewPointCenter crashes. I get the stSystemPosition from a DB with the following values: 

Lat: 32.1325, Long: 34.90149

Here is my code:


    Point systemPosition(stSystemPosition.dLongitude, stSystemPosition.dLatitude);
    PictureMarkerSymbol* crossSymbol = new PictureMarkerSymbol(QUrl("qrc:/Resources/images/PNG/MAP/OwnCross.png"), this);
    Graphic* graphic = new Graphic(systemPosition, crossSymbol);