-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streets Basemap Initial View after changing mapStartBasemap #566
Comments
@RiverGlen It sounds like the basemap in the |
Tim Thanks, I followed those instructions for MapOptions in viewer.js and I switched the mapStartBasemap to 'shadedrelief'. However, if I change basemap: to shadedrelief, it wont load the application. Thus, I get a blank grid with the "PoweredbyEsri logo in the map window and no tools open in the left pane. In basemap.js I have configure 'Shaded Relief' basemap to use as: shadedrelief: { Is there a limitation to using a custom basemap as your basemap option in the MapOptions? |
As you describe it, I believe the problem is in viewer.js. You need to have the custom basemap in that file. It should be something like this: mapOptions: {
basemap: new Basemap({
id: 'shadedrelief',
layers: [new BasemapLayer({
url: 'http://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer'
})]
}),
center: [0,0],
zoom: 5,
sliderStyle: 'small',
showAttribution: true
} Also, as it is noted in the docs you must add references to |
Cheers Tim, that makes the difference! I had tried that code but did not have it loaded under MapOptions. For those novice types like me one more note, is that not only adding the esri/dijit references Tim suggested above but make sure to add the function objects too: function (units, Extent, esriConfig, GeometryService, ImageParameters, Basemap, BasemapLayer) { |
Hi, Tim: Seems that works for all other basemap type, but not for the google basemap family. if tried to add the following basemap as default
then I see the following error in the debug console Map.setBasemap: Unknown basemap layer type: "WebTiledLayer" found in basemap definition for: "". Please let me know if you know the fix for this or not. Thanks |
@tmcgee Thanks for the info. |
Hello, thank you for the open-source CMV-App 1.3.4.
Here's the issue I am having:
Using CMV-app, I have made changes to viewer.js and basemap.js to switch the initial Basemap from a custom "Streets" to a custom "Shaded Relief". It makes the change but in the initial launch of the app, it still shows the Streets basemap before quickly switching to Shaded Relief. Am I missing a customized change that is not in the viewer.js or basemap.js? Thanks for all replies.
The text was updated successfully, but these errors were encountered: