ECn Categories > Lost Content (LC) > Blank Map (BM)
It refers to cases in which an app provides a map functionality, and due to lack of connection, the map is blank (i.e., does not show any layer of the map) and there is no message notifying the issue.
Amount of Issues | App List |
---|---|
6 | (A6) PressureNet, (A33) OpenBikeSharing, (A34) c:geo, (A35) PAT Track |
Examples
C:Geo
The following code snippets show the classes and files that are involved in the generation of the previuos issue.
In order to see how this error is generated, we need to review the complete flow event. First, as is shown in the following snippet at line 430 the layout used for the activity is retrieved, as it can be seen in the video the map provider is google, then the layout must be the google layout xml. Nevertheless as it can be seen in the snippet there is no validation of the connecton state before loading the map, therefore the map due to the connectionless state will not load.
main/src/cgeo/geocaching/maps/CGeoMap.java
// set layout
ActivityMixin.setTheme(activity);
getActionBar().setDisplayHomeAsUpEnabled(true);
430. activity.setContentView(mapProvider.getMapLayoutId());
setTitle();
// initialize map
mapView = (MapViewImpl) activity.findViewById(mapProvider.getMapViewId());
mapView.setMapSource();
mapView.setBuiltInZoomControls(true);
mapView.displayZoomControls(true);
mapView.preLoad();
mapView.setOnDragListener(new MapDragListener(this));