Skip to content

Instantly share code, notes, and snippets.

@kcarrier
Created August 13, 2014 12:56
Show Gist options
  • Save kcarrier/2b6f5a64dc6fba78959c to your computer and use it in GitHub Desktop.
Save kcarrier/2b6f5a64dc6fba78959c to your computer and use it in GitHub Desktop.
basemaps example
/* 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
Copy link

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?

@kcarrier
Copy link
Author

@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