sseligma

mapView is blank when added to a layout

Discussion created by sseligma on Mar 12, 2013
Latest reply on Apr 22, 2013 by vsriram_i
When I have a mapView that is already defined in a layout and set the view with the following code, everything works fine:

map = (MITMapView)findViewById(getMapViewID());

However, if I tried to add a mapView dynamically to a linear layout using the addView method, the mapView appears blank (black or grey). If there any way to dynamically add mapviews to a layout?

Outcomes