aboutsummaryrefslogtreecommitdiff
path: root/README
blob: b93adcce3527ab2de655a5b914576744a7458ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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.