aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.txt15
-rw-r--r--gmap_arcgis.js6
2 files changed, 17 insertions, 4 deletions
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..e8bbfbc
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,15 @@
+GMap ArcGIS Integration
+=======================
+
+This module implements support for ArcGIS API into a GMap. It doesn't provide
+any custom interface or GUI for integration but includes a simple API.
+
+It required Drupal's GMap module as it relies on hook_gmap() and allows one to
+draws custom labels and polygons in a GMap instance by manipulating $map array
+from Drupal GMap API.
+
+To use it, just implement hook_gmap() at your module and add settings into
+$map['arcgis'].
+
+This module was developed with support from Instituto Socioambiental -
+http://www.socioambiental.org.
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 0691ad4..8dd4481 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -10,8 +10,7 @@ var map, mapExtension, gOverlays;
function gmap_arcgis() {
// Fallback setting
- // TODO: general default settings instead of custom ISA config
- var fallback = 'http://isamapas.socioambiental.org:8399/arcgis/rest/services/uc_isa/MapServer';
+ var fallback = 'http://mapserver.fqdn/rest/services/app/MapServer';
var polygons = [ fallback ];
var labels = [ fallback + '/2' ];
var fields = new Array();
@@ -39,8 +38,7 @@ function gmap_arcgis() {
mapExtension = new esri.arcgis.gmaps.MapExtension(map);
for each (var label in labels) {
- // TODO: general default settings instead of custom ISA config
- fields = ["id_arp", "nome_uc"];
+ fields = ["id", "name"];
icon = new GIcon(G_DEFAULT_ICON);
if (label[1] !== undefined) {
// Set custom fields