From 2c26c924910d6e0aa30dd8be1b1fdf510da58bcb Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 3 Apr 2013 18:30:53 -0300 Subject: README --- README | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/README b/README index e69de29..b93adcc 100644 --- a/README +++ b/README @@ -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. -- cgit v1.2.3