clean up
[platform/core/location/maps-plugin-here.git] / src / here_view.cpp
index 33c7ee7..b18f4d9 100644 (file)
@@ -42,11 +42,6 @@ HereView::HereView()
        __w = 0;
        __h = 0;
 
-       __lat = 0.;
-       __lng = 0.;
-       __zoom = 0.;
-       __angle = 0.;
-
        __idler = NULL;
        __redraw = false;
        __readyCb = NULL;
@@ -317,13 +312,11 @@ here_error_e HereView::renderMap(maps_view_h view, const maps_coordinates_h coor
 
        /* zoom level */
        if (__map->GetZoomLevel() != zoom) {
-               __zoom = zoom;
                __map->SetZoomLevel(zoom, false);
        }
 
        /* angle */
-       if (__angle != angle) {
-               __angle = angle;
+       if (__map->GetAngle() != angle) {
                __map->SetAngle(angle);
        }
 
@@ -333,8 +326,6 @@ here_error_e HereView::renderMap(maps_view_h view, const maps_coordinates_h coor
        maps_coordinates_get_longitude(coord, &lng);
 
        GeoCoordinates geoCoord(lat, lng);
-       __lat = lat;
-       __lng = lng;
        __map->SetCenter(geoCoord);
 
        return HERE_ERROR_NONE;