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
|
|
@ -21,7 +21,11 @@ String GetGoogleMap(double center_x, double center_y, int zoom, int cx, int cy,
|
|||
"&size=" << cx << 'x' << cy <<
|
||||
"&format=" << format <<
|
||||
"&sensor=false&key=" << apikey;
|
||||
return HttpClientGet(request, NULL, error);
|
||||
HttpRequest r(request);
|
||||
String h = r.Execute();
|
||||
if(r.IsFailure())
|
||||
*error = r.GetErrorDesc();
|
||||
return h;
|
||||
}
|
||||
|
||||
Image GetGoogleMapImage(double center_x, double center_y, int zoom, int cx, int cy,
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
#define _GoogleMaps_GoogleMaps_h
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
#include <Web/Web.h>
|
||||
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue