aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2009-10-22 16:24:56 -0200
committerSilvio <silvio@socioambiental.org>2009-10-22 16:24:56 -0200
commit4bbf8693a2571a28d62b12a2177fea7eacfde66a (patch)
tree352e80929f370c283584b498ed95665784fa71d8
parentccaa9e7ea24f735ae83bd03cce41feef7738cd0d (diff)
downloadgmap_arcgis-4bbf8693a2571a28d62b12a2177fea7eacfde66a.tar.gz
gmap_arcgis-4bbf8693a2571a28d62b12a2177fea7eacfde66a.tar.bz2
Adding README and removing some custom ISA configs
-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