From 4bbf8693a2571a28d62b12a2177fea7eacfde66a Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 22 Oct 2009 16:24:56 -0200 Subject: Adding README and removing some custom ISA configs --- README.txt | 15 +++++++++++++++ gmap_arcgis.js | 6 ++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 README.txt 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 -- cgit v1.2.3