-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
VectorTileLayer
as a new type of operational layer.
requires at least v3.15 or v4.0 beta 2 of the ESRI JS API
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
define([ | ||
'dojo/_base/declare', | ||
'dijit/_WidgetBase', | ||
'dijit/_TemplatedMixin', | ||
'dijit/_Contained', | ||
'./_Control' // layer control base class | ||
], function ( | ||
declare, | ||
_WidgetBase, | ||
_TemplatedMixin, | ||
_Contained, | ||
_Control | ||
) { | ||
'use strict'; | ||
|
||
var VectorTileControl = declare([_WidgetBase, _TemplatedMixin, _Contained, _Control], { | ||
_layerType: 'overlay', // constant | ||
_esriLayerType: 'vectortile', // constant | ||
_layerTypeInit: function () { | ||
this._expandRemove(); | ||
} | ||
}); | ||
return VectorTileControl; | ||
}); |
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