platform/shared/common/map/GoogleMapEngine.cpp in rhodes-3.3.3.beta.4 vs platform/shared/common/map/GoogleMapEngine.cpp in rhodes-3.3.3
- old
+ new
@@ -50,10 +50,11 @@
int GoogleMapView::getMapTile(uint64 p_zoom, uint64 p_row, uint64 p_column, void** p_data, size_t* p_size)
{
void *data = NULL;
size_t datasize = 0;
+ //int datasize = 0;
String url = "";//cmd->baseUrl;
int zoom = (int)p_zoom;
@@ -97,10 +98,18 @@
url += buf;
if (!fetchData(url, &data, &datasize))
return 0;
+ //{
+ // int id = mapengine_request_make();
+ // if (!mapengine_request_data(id, url.c_str(), &data, &datasize)) {
+ // return 0;
+ // }
+ //}
+
+
*p_data = data;
*p_size = datasize;
return 1;
}
@@ -110,10 +119,13 @@
return new GoogleMapView(device);
}
void GoogleMapEngine::destroyMapView(IMapView *view)
{
- delete view;
+ RHO_MAP_TRACE("GoogleMapEngine::destroyMapView() start");
+ //delete view;
+ BaseMapView::processClean((BaseMapView*)view);
+ RHO_MAP_TRACE("GoogleMapEngine::destroyMapView() finish");
}
} // namespace map
} // namespace common
} // namespace rho