Being layers seem not to work. When selecting one of Bing layers (road, aerial, hybrid), maps display with a blank base layer (layers markers on white background).

Here's e.g. Bing Road layer export code (OL module default sets)

$openlayers_layers = new stdClass();
$openlayers_layers->disabled = FALSE; /* Edit this to true to make a default openlayers_layers disabled initially */
$openlayers_layers->api_version = 1;
$openlayers_layers->name = 'bing_road';
$openlayers_layers->title = 'Bing Road';
$openlayers_layers->description = 'Bing Road tiles.';
$openlayers_layers->data = array(
  'name' => 'Bing Road',
  'isBaseLayer' => TRUE,
  'type' => 'Road',
  'projection' => array(
    0 => 'EPSG:3857',
  ),
  'layer_type' => 'openlayers_layer_type_bing',
);

Comments

blueearth’s picture

I have the same problem.. Even if I enable the example_bing map in admin/structure/openlayers/maps, I still only see the controls but don't see the map itself.

pol’s picture

Is the example_bing map working for you ?

cesareaugusto’s picture

Nope. None of my maps on none of my Drupal installs work with the Bing base layers. It seems a module bug as they used to work before the update.

pol’s picture

Stupid question but, did you filled-in your API key in admin/structure/openlayers/layers/settings to use Bing ?

cesareaugusto’s picture

@Pol: Stupid question... for a dummy user LOL Thanks mate! You solved my problem! VirtualEarth maps used to work with no need of a key.

pol’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.