aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-03 19:01:32 -0300
committerSilvio <silvio@socioambiental.org>2013-04-03 19:01:32 -0300
commit02f9d1058e622d5e8c0abcdd907d57dd50549209 (patch)
tree0e636e28137465e21c8cbefeb3fb4d72f942985c /README.md
parent2c26c924910d6e0aa30dd8be1b1fdf510da58bcb (diff)
downloadgmap_arcgis_js-02f9d1058e622d5e8c0abcdd907d57dd50549209.tar.gz
gmap_arcgis_js-02f9d1058e622d5e8c0abcdd907d57dd50549209.tar.bz2
Example update
Diffstat (limited to 'README.md')
-rw-r--r--README.md60
1 files changed, 60 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f3dd2e5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,60 @@
+Gmap ArcGIS JS
+==============
+
+This small library helps you to manage lots of ArcGIS layers and markers in your Google Maps v3.
+
+Features
+--------
+
+ - Can easily show and hide KMLs, layers and markers from any ArcGIS server.
+ - Support for Identify tasks.
+ - jQuery slider support to show multiple layers using a scrollable slider.
+
+Requirements
+------------
+
+ - ArcGIS Link.
+ - jQuery and jQuery UI.
+
+Usage
+-----
+
+Create a gmapArcgis object for your map and define layers, markers and kmls:
+
+ var myGmapArcgis = new gmapArcgis({
+ // Map object
+ map: map,
+
+ // Map html element
+ mapName: mapID,
+
+ layers: {
+ mylayer: {
+ overlayTime: 5000,
+ uri: mapServiceUrl,
+ opacity: 0.65,
+ layers: [1],
+ showOn: [ 'map' ],
+ },
+
+ markers: {
+ mymarker: {
+ uri: mapServiceUrl + '/' + layerName,
+ overlayTime: 2000,
+ fields: [ ],
+ content: markerCallback,
+ icon: 'example.png',
+ showOn: [ 'map' ],
+ },
+ },
+ });
+
+Then you should be able to display them easily:
+
+ myGmapArcgis.addLayers('mylayer');
+ myGmapArcgis.addMarkers('mymarker');
+
+Examples
+--------
+
+Check the examples/ folder for working examples.