Created
August 13, 2014 12:56
-
-
Save kcarrier/2b6f5a64dc6fba78959c to your computer and use it in GitHub Desktop.
basemaps example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ConfigurableViewerJSAPI | |
* @version v1.0.1 | |
* @author David Spriggs | |
* Project: https://github.com/DavidSpriggs/ConfigurableViewerJSAPI | |
* Copyright 2014. MIT licensed. | |
*/ | |
define(["esri/map", "esri/dijit/BasemapGallery", "dojo/dom-construct"], function (Map, BasemapGallery, domConstruct) { | |
var map = new Map( ... ); | |
var basemapGallery = new BasemapGallery({ | |
showArcGISBasemaps: true, | |
basemapsGroup: { owner: "clermontcounty", title: "Base Maps Clermont County"}, | |
map: map | |
}, domConstruct.create('div')); | |
}); | |
//# sourceMappingURL=basemaps.js.map |
@DavidSpriggs - Originally I thought replacing the code from the help website would be the best option. I deleted the source code and pasted the new code. Obviously I was wrong, still learning ;)
Let me get the original code back in there and try to add the additional code and see what I can come up with. Thanks for the prompt reply and education about the basemaps.js.maps.
If I get something working I will share. Thanks again!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not looks correct. There is no reason to create a map, it already exists. Where is all the other code? Is this a new class your created or the original one?