Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Js expects pixels or percentage, raw values are given:
Example :600x400
Potential solution would be to explode on ' x ' in below code and allow for values like:
600px x 400px
and
600px x 100%
function theme_mapstraction_views_map($view, $options, $rows) {
drupal_add_js(drupal_get_path('module', 'mapstraction_cck') . '/js/mapstraction_views.js');
$api_name = $view->style_plugin->options['api'];
mapstraction_cck_load_maps($api_name);
$id = 'mapstraction-' . $view->name . '-' . $view->current_display;
list($width, $height) = explode(' x ', $options['dimensions']);
$map = array(
'provider' => $api_name,
'control' => $options['zoom_control'],
'id' => $id,
'height' => $height,
'width' => $width,
);
Comments
Comment #1
plopescHi,
thanks for your assesment. I will work on this issue as soon as possible and I will look for the best solution
Regards
Comment #2
plopescThis issue has been fixed in the Mapstraction CCK beta3 version.
Changes made in the module will broke your previous Mapstraction CCK Views
You'll see your Mapstraction CCK view map as in tha attached image.
Please, after upgrade your module, go to the Views definition form and enter the height and width values for the View map again.