[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/plugins/render/panoramio
From: Bastian Holst <bastianholst () gmx ! de>
Date: 2009-04-15 19:49:07
Message-ID: 1239824947.007057.5881.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 954457 by bholst:
PanoramioPlugin using RAD2DEG and DEG2RAD now.
M +7 -6 PanoramioPlugin.cpp
M +0 -1 PanoramioPlugin.h
--- trunk/KDE/kdeedu/marble/src/plugins/render/panoramio/PanoramioPlugin.cpp #954456:954457
@@ -19,6 +19,7 @@
#include "GeoDataCoordinates.h"
#include "GeoDataLatLonAltBox.h"
#include "ViewportParams.h"
+#include "global.h"
@@ -82,8 +83,8 @@
if( firstTime ) {
// GeoDataLatLonAltBox latLonAltBox = viewport->viewLatLonAltBox();
downloadPanoramio( 0, numberOfImagesToShow,
- 180 / RADIANSTODEGREES, -180 / RADIANSTODEGREES,
- 90 / RADIANSTODEGREES, - 90 / RADIANSTODEGREES );
+ 180 * DEG2RAD, -180 * DEG2RAD,
+ 90 * DEG2RAD, - 90 * DEG2RAD );
firstTime = false;
}
painter->autoMapQuality();
@@ -158,10 +159,10 @@
QUrl jsonUrl( "http://www.panoramio.com/map/get_panoramas.php?from="
+ QString::number( rangeFrom )
+ "&to=" + QString::number( rangeTo )
- + "&minx=" + QString::number( east * RADIANSTODEGREES )
- + "&miny=" + QString::number( west * RADIANSTODEGREES )
- + "&maxx=" + QString::number( north * RADIANSTODEGREES )
- + "&maxy=" + QString::number( south * RADIANSTODEGREES )
+ + "&minx=" + QString::number( east * RAD2DEG )
+ + "&miny=" + QString::number( west * RAD2DEG )
+ + "&maxx=" + QString::number( north * RAD2DEG )
+ + "&maxy=" + QString::number( south * RAD2DEG )
+ "&size=small");
qDebug() << QString( "Downloading:\n" )
+ "East: " + QString::number( east ) + '\n'
--- trunk/KDE/kdeedu/marble/src/plugins/render/panoramio/PanoramioPlugin.h #954456:954457
@@ -14,7 +14,6 @@
#ifndef MARBLEPANORAMIOPLUGIN_H
#define MARBLEPANORAMIOPLUGIN_H
-#define RADIANSTODEGREES 57.2957795
#include <QtCore/QObject>
#include "../lib/HttpDownloadManager.h"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic