aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.module
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.module')
-rw-r--r--gmap_arcgis.module10
1 files 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 = '<script type = "text/javascript" ';
drupal_set_html_head($script . 'src="http://www.google.com/jsapi?key=' . $key . '&sensor=true&language=pt-BR"></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');