This file contains hidden or 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
/* | |
file: viewer/Controller.js | |
This file is not merged from upstream source, developer should make all customizations here, not in viewer/core/_Controller.js! Stay out of the Controlller! | |
*/define([ | |
'dojo/_base/declare', | |
'viewer/core/_CoreController.js', | |
'myMixins/Mixin1', | |
'myMixins/Mixin2' | |
], function (declare, _CoreController, Mixin1, Mixin2) { |
This file contains hidden or 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
<div class="${baseClass}"> | |
<!-- this doesn't work --> | |
<!--<div data-dojo-type="dijit/form/DropDownButton" | |
data-dojo-attach-point="galleryDropDownButton" | |
data-dojo-props="iconClass:'fa fa-th-large fa-fw'"> | |
<span>${title}</span> | |
<div data-dojo-type="dijit/TooltipDialog" > | |
<div data-dojo-attach-point="basemapGalleryNode" | |
style="width: 380px; height: 280px; overflow: auto;"></div> |
This file contains hidden or 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
define([ | |
'dojo/_base/declare', | |
'dijit/_WidgetBase', | |
'dijit/_TemplatedMixin', | |
'dijit/_WidgetsInTemplateMixin', | |
'dojo/dom-construct', | |
'dojo/_base/lang', | |
'dojo/_base/array', | |
'dojo/on', | |
'dojo/keys', |
This file contains hidden or 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
layerControlLayerInfos: { | |
swipe: true, | |
swipeScope: true, | |
noTransparency: false, | |
sublayers: false, | |
noZoom: true, | |
exclude: true | |
} |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
define([ | |
"dojo/_base/declare", | |
], function( | |
declare | |
) { | |
var TopicRegistrySingleton = declare( [], {}); | |
TopicRegistrySingleton.MAP_DISABLE_INFOTEMPLATES = 'map/disableInfoTemplates'; | |
TopicRegistrySingleton.MAP_ENABLE_INFOTEMPLATES = 'map/enableInfoTemplates'; | |
TopicRegistrySingleton.MAP_INITIALIZED = 'map/initialized'; |
This file contains hidden or 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
_createFeatureLayerInfoTemplate: function () { | |
var infoTemplate = new InfoTemplate(); | |
infoTemplate.setTitle( 'BG-Base Plant' ); | |
infoTemplate.setContent( | |
'<h5>${PLANT_NAME}</h5><ul class="list-unstyled">' + | |
'<li><label>Accession No: </label>${ACC_NUM_AN}</li>' + | |
'<li><label>Comm. Name: </label>${COMMON_NAME}</li>' + | |
'<li><label>SubType: </label>${PLANT_SUBTYPE}</li>' + | |
'<li><label>Status: </label>${PLANT_STATUS}</li>' + |
This file contains hidden or 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
//in postCreate method | |
this.map.infoWindow.on ( 'show', lang.hitch ( this, this.executeRelatedFeaturesTask ) ); | |
this.map.infoWindow.on ( 'hide', lang.hitch ( this, this.popUpClosedHandler ) ); | |
//getting the selected feature (I think there is a change event for the selected feature) | |
this.set ( 'selectedFeature', this.map.infoWindow.getSelectedFeature ().attributes ); |