I want my map’s background to be transparent.
How can I do this?
This is possible by configuring the vg_config.xml file within the map bundle.
Update the map bundle’s vg_config.xml file to contain a clear background color. At the same time you should deactivate or remove the <background> tag if it’s present.
The below configuration file excerpt contains the modifications you will need to make.
<!-- vg_config.xml --> <!-- ... --> <datasets> <dataset ...> <background_OFF resource="eBackground16" scaleMode="eRepeat" widthInPixel="8.0" color1="0xbfbfbfff" color2="0x000000ff"/> <backgroundClearColor color="0x00000000"/> <!-- ... -->
If you are developing for iOS, you will also need to ensure that the map view’s opacity is deactivated.
// Within VgMyViewController.mm - (void)viewDidLoad { [super viewDidLoad]; ... // Where mMapView is the VgEAGLView object mMapView.opaque = NO; }