Comments (8)
@cmccullough2 you need to use placeAt: 'right'
in the widget configuration to put a widget in the right-hand pane. sidebarID: 'sidebarRight'
is unnecessary in the widget configuration. You also do not need the style or content properties in configuration for the pane.
from cmv-wab-widgets.
I did what you suggested, but I am still getting this error below: The rest of the error message is my local IP address. Thoughts ...
from cmv-wab-widgets.
@cmccullough2 I have tested this in the wab demo configuration and it does work. The pane configuration looks like this:
panes: {
left: {
splitter: true,
style: 'width:340px;'
},
right: {
id: 'sidebarRight',
placeAt: 'outer',
region: 'right',
collapsible: true
}
},
and you only need add this to the BaseMapGallery widget's configuration:
placeAt: 'right'
from cmv-wab-widgets.
@cmccullough2 For completeness, there is a new Basemap Gallery widget in CMV that works like a drop-down similar to the existing CMV Basemap widget. I prefer that to the WAB version which takes up so much screen real estate.
from cmv-wab-widgets.
Thank you. I agree. I can test it for you, but I am sure you have done it many times already. Unfortunately, my 'idea fairy' wants to have a customized basemap with Google Terrain maps. I have successfully done this, but not in a gallery style. Hopefully, I can update my github site with the correct code, so I can share. I have been incredibly busy with things not developer related.
from cmv-wab-widgets.
@tmcgee Is there a config for this widget?
from cmv-wab-widgets.
For the new CMV BasemapGallery widget? There isn't a config documented explicitly, but you can extract it from the CMV code I added to include a BasemapGallery widget when a Webmap expects one: https://github.com/cmv/cmv-app/blob/develop/viewer/js/viewer/_WebMapMixin.js#L139
from cmv-wab-widgets.
You can also include galleryOptions
like this which includes the parameters documented in the Esri Basemap widget.
You mentioned the Google Terrain map, the CMV BaseMapGallery widget should be able to include that mostly unchanged since the BaseMap widget has always used an Esri BaseMapGallery behind the scenes. Just include your array custom basemaps as the basemaps
parameter within the galleryOptions. You'll need a thumbnail image, of course.
from cmv-wab-widgets.
Related Issues (20)
- Bypassing Portal HOT 1
- config/nls folder not in cmv-wab-widgets folder HOT 2
- Errors loading custom basemaps when integrating a WAB widget HOT 6
- Does "mapClickMode" work with the Enhanced Measure Widget? HOT 3
- Cannot read property split of undefined HOT 1
- WAB widgets do not load on mobile devices HOT 6
- CMV WAB Widget Query - Result panel options Feature Action doesn't work HOT 1
- Query WAB widget PopUp - Multiple Field HOT 1
- WAB Widgets Content Height HOT 2
- Filter Widget Error - 'isShowInMap' null HOT 3
- Chart widget - Enlarge Window HOT 2
- Logo for 'sub-configuration' viewers. HOT 2
- binding sql data to datagrid using wcf service HOT 1
- Switching on Dynamic-Sublayer in LayerControl results in drawing all sublayers HOT 2
- WAB Widget: Image Discovery HOT 2
- Layer operation buttons not working HOT 1
- Wab widgets wonβt load HOT 10
- CMV Editor widget issue in WAB enabled cmv viewer since api 3.21 HOT 7
- The Draw tools in the demo is not charging, I want to try that one if we have a save for the Draft? HOT 5
- Try to reload my drawing? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmv-wab-widgets.