platform/shared/common/map/OSMMapEngine.cpp in rhodes-3.3.3.beta.4 vs platform/shared/common/map/OSMMapEngine.cpp in rhodes-3.3.3
- old
+ new
@@ -61,10 +61,11 @@
int OSMMapView::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;
// Make url
char buf[1024];
@@ -75,11 +76,18 @@
//RAWLOG_ERROR("########### getMapTime() BEFORE FETCH");
if (!fetchData(url, &data, &datasize))
return 0;
+ //{
+ // int id = mapengine_request_make();
+ // if (!mapengine_request_data(id, url.c_str(), &data, &datasize)) {
+ // return 0;
+ // }
+ //}
+
//RAWLOG_ERROR("########### getMapTime() AFTER FETCH");
*p_data = data;
*p_size = datasize;
@@ -91,10 +99,13 @@
return new OSMMapView(device);
}
void OSMMapEngine::destroyMapView(IMapView *view)
{
- delete view;
+ RHO_MAP_TRACE("OSMMapEngine::destroyMapView() start");
+ //delete view;
+ BaseMapView::processClean((BaseMapView*)view);
+ RHO_MAP_TRACE("OSMMapEngine::destroyMapView() finish");
}
} // namespace map
} // namespace common
} // namespace rho