The Cloudmade support required a significant amount of reading and understanding OpenLayers and mapstraction code. The Cloudmade layer wasn't being displayed because the OpenLayers/OpenStreetMap layer was loading automatically as a dependency.

This patch sets the cloudmade layer as the base layer.

CommentFileSizeAuthor
mapstraction-cloudmade-support.patch1.16 KBAnonymous (not verified)

Comments

dixon_’s picture

Status: Needs review » Needs work

We don't need base_path() in front of drupal_get_path(). Drupal should take care of that I think.

Anonymous’s picture

Nope.

see http://api.drupal.org/api/function/drupal_get_path
see http://api.drupal.org/api/function/drupal_get_js

Usually we aren't inserting a URl into a src tag. Instead we're using drupal_add_js (where drupal_get_js does call base_path) or we're using l() or url() which also solve the problem for us.

Anonymous’s picture

Status: Needs work » Needs review
febbraro’s picture

Status: Needs review » Reviewed & tested by the community

This worked great for me. Thanks @bangpound.

robsteranium’s picture

Can confirm this works for us. Thanks @bangpound.

j0k3z’s picture

This didnt work for me, any idea what else it might be?

levelos’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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