From 752447442224cfb7320532e00271f41e11b7bc8e Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 27 Mar 2013 15:59:25 -0300 Subject: Fixing js invocation --- gmap_arcgis.module | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gmap_arcgis.module b/gmap_arcgis.module index 1c0a093..525955e 100644 --- a/gmap_arcgis.module +++ b/gmap_arcgis.module @@ -49,17 +49,13 @@ function gmap_arcgis_gmap($op, &$map) { $script = ''); - // Add ArcGIS js API - drupal_add_js($base_url .'/sites/all/libraries/google-maps-utility-library-v3/arcgislink/src/arcgislink_compiled.js'); - drupal_add_js($base_url .'/sites/all/libraries/gmap_arcgis_js/gmap_arcgis.js'); + // Add ArcGIS js API and wrapper + drupal_add_js('sites/all/libraries/google-maps-utility-library-v3/arcgislink/src/arcgislink_compiled.js'); + drupal_add_js('sites/all/libraries/gmap_arcgis_js/gmap_arcgis.js'); // Setup Map Id drupal_add_js(array('gmap_arcgis' => array('id' => $map['id'])), 'setting'); - // Add custom js - $gmap_arcgis_path = drupal_get_path('module', 'gmap_arcgis') . '/'; - drupal_add_js($gmap_arcgis_path . 'gmap_arcgis.js'); - // TODO: move somewhere else //jquery_ui_add('ui.dialog'); jquery_ui_add('effects.fold'); -- cgit v1.2.3