Leaflet More Maps adds B(l)ing

×

Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2394 of /home/flinkco/public_html/includes/menu.inc).
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 569 of /home/flinkco/public_html/includes/menu.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/flinkco/public_html/includes/common.inc).
The Drupal module Leaflet More Maps already offered a considerable set of over 20 attractive maps from a variety of providers, including high-res versions of Google Maps. All available at the click of a drop-down selector, when you have the Leaflet or IP Geolocation Views & Maps modules installed. But until a couple of days ago, an important provider was missing: Bing. Adding the Bing road, satellite and hybrid maps was a little harder due to Bing's quad tree tile numbering system. For instance, a map tile in the more common xyz coordinate system, e.g. "x=5, y=11 at zoom level 5", which is the Portland OR area (pictured in Esri's World Topo Map), in Bing is identified by a single quad key: "02123". Not that you have to know any of this. With a little help from the Bing software architect we figured this out for you. And thanks to the extensibility of the Leaflet JS library it was easy to implement with only a few lines of Javascript. Simply upgrade to Leaflet More Maps 7.x-1.4, select your favourite map from the drop-down and enjoy!
File under: 

Drupal 8: contrib roads, take me home

Read More »