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:
cxl 2012-09-22 08:19:38 +00:00
parent 7ed497eae9
commit 2581fcf102
2 changed files with 216 additions and 214 deletions

View file

@ -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,

View file

@ -2,8 +2,6 @@
#define _GoogleMaps_GoogleMaps_h
#include <CtrlLib/CtrlLib.h>
#include <Web/Web.h>
using namespace Upp;