BETA - ArcGIS/ESRI Maps

How to enable ESRI/ArcGIS maps in GpsGate Server VehicleTracker


This guide describes how to enable use of ESRI/ArcGIS maps in GpsGate Server VehicleTracker.

Install
     
  1. Go to SiteAdmin / Plugins
  2.  
  3. Upgrade CoreMap from the http://beta.gpsgate.com/ repository (if not you will get prompted in the next step).
  4.  
  5. Install ArcGISMap from the http://beta.gpsgate.com/ repository.
Setup
     
  1. Go to SiteAdmin / Maps / ArcGIS
  2.  
  3. Click “New”
  4.  
  5. Specify the. Name, URL, and Description fields
  6.  
  7. Click “Save”

Name: The name you use to reference when enabling the map in the VehicleTracker applications.
URL: Link to the ESRI/ArcGIS server and map you want to use. (Please make sure it is correct and responding by opening it in your browser first).
Description: An optional description note, mostly for your convenience.

When you have created a map, or several maps, your must now enable the maps for the VehicleTracker applications you will use.

     
  1. Go to SiteAdmin / Applications / [your app] / Privileges and Features / Maps
  2.  
  3. Enable _UseMapPlugin / ArcGISMap
  4.  
  5. Enable the _UseArcGISMap privilege
  6.  
  7. From the _UseArcGISMap folder enable the individual ArcGIS map(s) you need!
  8.  
  9. Click “Save”
Some default maps available from ArcGIS

Here are some exising maps available from ArcGIS you can try out.

(Adding no maps will make the plugin fallback to a default OpenStreetMap layer)

How to enable CORS

The url to the mapservers need to be accessible from the domain you browse from. If it’s not the same as your ArcGIS map server. Easiest is to enable CORS on your ArcGIS server. http://blogs.esri.com/esri/arcgis/2011/09/29/cross-origin-resource-sharing-cors-with-the-arcgis-api-for-javascript/

More information: https://developers.arcgis.com/javascript/jssamples/exp_cors_buffer.html
Alternately use the proxy: https://developers.arcgis.com/javascript/jshelp/ags_proxy.html

General information about CORS can be found here here: http://enable-cors.org/

Please note that this plugin is still Beta. Try it out and give feedback!


  Discuss this blog post on the forum please



Download free GpsGate Server

Install it on your own server. The installation is free for 5 users.

Download Now