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,
  );
CommentFileSizeAuthor
#2 views.jpg25.92 KBplopesc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc’s picture

Status: Active » Needs review

Hi,
thanks for your assesment. I will work on this issue as soon as possible and I will look for the best solution

Regards

plopesc’s picture

Status: Needs review » Fixed
FileSize
25.92 KB

This 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.

Status: Fixed » Closed (fixed)

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