aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.module
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-03-27 15:59:25 -0300
committerSilvio <silvio@socioambiental.org>2013-03-27 15:59:25 -0300
commit752447442224cfb7320532e00271f41e11b7bc8e (patch)
tree6f3d620f8f5cb5fe02389d3aa46b5e084a8edf77 /gmap_arcgis.module
parent99ca342bd59ab2669f51daebd9e6995cf69614f0 (diff)
downloadgmap_arcgis-752447442224cfb7320532e00271f41e11b7bc8e.tar.gz
gmap_arcgis-752447442224cfb7320532e00271f41e11b7bc8e.tar.bz2
Fixing js invocation
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');