mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
examples: GoogleMaps now using Core instead of Web
git-svn-id: svn://ultimatepp.org/upp/trunk@5384 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7ed497eae9
commit
2581fcf102
2 changed files with 216 additions and 214 deletions
|
|
@ -1,37 +1,35 @@
|
|||
#ifndef _GoogleMaps_GoogleMaps_h
|
||||
#define _GoogleMaps_GoogleMaps_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <Web/Web.h>
|
||||
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <GoogleMaps/GoogleMaps.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
#define IMAGECLASS GoogleMapsImg
|
||||
#define IMAGEFILE <GoogleMaps/GoogleMaps.iml>
|
||||
#include <Draw/iml_header.h>
|
||||
|
||||
void SetGoogleMapsKey(const char *key);
|
||||
String GetGoogleMap(double center_x, double center_y, int zoom, int cx, int cy,
|
||||
const char *format = "png", String *error = NULL);
|
||||
Image GetGoogleMapImage(double center_x, double center_y, int zoom, int cx, int cy,
|
||||
const char *format = "png", String *error = NULL);
|
||||
double CvDeg(double deg, double minutes, double seconds);
|
||||
|
||||
Pointf GoogleMapsPixelToGps(Pointf center, int zoom, Point diff);
|
||||
Pointf GoogleMapsPixelToGps(Pointf center, int zoom, Size sz, Point p);
|
||||
Pointf GoogleMapsGpsToPixelDiff(Pointf center, int zoom, Pointf gps);
|
||||
Pointf GoogleMapsGpsToPixel(Pointf center, int zoom, Size sz, Pointf gps);
|
||||
|
||||
Pointf ScanGPS(const char *s);
|
||||
|
||||
String FormatGPSX(double x);
|
||||
String FormatGPSY(double y);
|
||||
String FormatGPS(Pointf p);
|
||||
|
||||
bool MapDlg(Pointf& p);
|
||||
|
||||
#endif
|
||||
#ifndef _GoogleMaps_GoogleMaps_h
|
||||
#define _GoogleMaps_GoogleMaps_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <GoogleMaps/GoogleMaps.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
#define IMAGECLASS GoogleMapsImg
|
||||
#define IMAGEFILE <GoogleMaps/GoogleMaps.iml>
|
||||
#include <Draw/iml_header.h>
|
||||
|
||||
void SetGoogleMapsKey(const char *key);
|
||||
String GetGoogleMap(double center_x, double center_y, int zoom, int cx, int cy,
|
||||
const char *format = "png", String *error = NULL);
|
||||
Image GetGoogleMapImage(double center_x, double center_y, int zoom, int cx, int cy,
|
||||
const char *format = "png", String *error = NULL);
|
||||
double CvDeg(double deg, double minutes, double seconds);
|
||||
|
||||
Pointf GoogleMapsPixelToGps(Pointf center, int zoom, Point diff);
|
||||
Pointf GoogleMapsPixelToGps(Pointf center, int zoom, Size sz, Point p);
|
||||
Pointf GoogleMapsGpsToPixelDiff(Pointf center, int zoom, Pointf gps);
|
||||
Pointf GoogleMapsGpsToPixel(Pointf center, int zoom, Size sz, Pointf gps);
|
||||
|
||||
Pointf ScanGPS(const char *s);
|
||||
|
||||
String FormatGPSX(double x);
|
||||
String FormatGPSY(double y);
|
||||
String FormatGPS(Pointf p);
|
||||
|
||||
bool MapDlg(Pointf& p);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue