Visioglobe Developer SiteVisioglobe Developer SiteVisioglobe Developer SiteVisioglobe Developer Site
  • PRODUCTS
    • VISIO MOVE ESSENTIAL
    • VISIO WEB
    • VISIO MAP EDITOR
  • BLOG
  • Q&A FORUM
  • VISIOGLOBE.COM
  • Log in
  • Questions
  • Unanswered

How can I make my map’s background transparent?

0

I want my map’s background to be transparent.

How can I do this?

Category: visiomove Tags: android iOS asked August 30, 2013
link
Jon Bryant
562

1 Answer

0
accepted

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;
}
link
Jon Bryant
562

  • PRODUCTS
    • VISIO MOVE ESSENTIAL
    • VISIO WEB
    • VISIO MAP EDITOR
  • BLOG
  • Q&A FORUM
  • VISIOGLOBE.COM
  • Log in
Visioglobe Developer Site