Skip to content

Commit

Permalink
Merge pull request #598 from cmv/feature/provide-google-maps-api-key
Browse files Browse the repository at this point in the history
Provide an API key for the Google StreetView Widget.
  • Loading branch information
DavidSpriggs authored Sep 20, 2016
2 parents 425af7f + e23b3ee commit b7fd36b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion viewer/js/config/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ define([
/*'esri/urlUtils',*/
'esri/tasks/GeometryService',
'esri/layers/ImageParameters',
'gis/plugins/Google',
'dojo/i18n!./nls/main'
], function (units, Extent, esriConfig, /*urlUtils,*/ GeometryService, ImageParameters, i18n) {
], function (units, Extent, esriConfig, /*urlUtils,*/ GeometryService, ImageParameters, GoogleMapsLoader, i18n) {

// url to your proxy page, must be on same machine hosting you app. See proxy folder for readme.
esriConfig.defaults.io.proxyUrl = 'proxy/proxy.ashx';
Expand All @@ -22,6 +23,10 @@ define([
// url to your geometry server.
esriConfig.defaults.geometryService = new GeometryService('https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer');

// Use your own Google Maps API Key.
// https://developers.google.com/maps/documentation/javascript/get-api-key
GoogleMapsLoader.KEY = 'NOT-A-REAL-API-KEY';

// helper function returning ImageParameters for dynamic layers
// example:
// imageParameters: buildImageParameters({
Expand Down

0 comments on commit b7fd36b

Please sign in to comment.