Project

General

Profile

« Previous | Next » 

Revision 4c21ffdb

Added by Andreas Kohlbecker almost 7 years ago

ref #5938 fixing js lib loading order (and defined map container ids)

View differences:

modules/cdm_dataportal/cdm_dataportal.module
161 161
    drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . $openlayers,
162 162
      array(
163 163
        'type' => 'file',
164
        'weight' => JS_LIBRARY,
164
        'group' => JS_LIBRARY,
165
        'weight' => 0,
165 166
        'cache' => TRUE,
166 167
        'preprocess' => FALSE
167 168
      )
......
172 173
    drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . $proj4js,
173 174
      array(
174 175
        'type' => 'file',
175
        'weight' => JS_LIBRARY,
176
        'group' => JS_LIBRARY,
177
        'weight' => -1, // before open layers
176 178
        'cache' => TRUE,
177 179
      )
178 180
    );
......
182 184
    $openlayers_imp_path = drupal_get_path('module', 'cdm_dataportal') . '/js/map/img/dark/';
183 185
    drupal_add_js('OpenLayers.ImgPath="' . base_path() . $openlayers_imp_path . '";', array(
184 186
        'type' => 'inline',
185
        'weight' => JS_LIBRARY,
187
        'group' => JS_LIBRARY,
188
        'weight' => 1, // after openlayers
186 189
        'cache' => TRUE,
187 190
        'preprocess' => FALSE
188 191
      ));

Also available in: Unified diff