SuperMap.Layer.EventPane

Base class for 3rd party layers.  Create a new event pane layer with the SuperMap.Layer.EventPane constructor.

Inherits from

Summary
SuperMap.Layer.EventPane Base class for 3rd party layers.
Properties
isFixed {Boolean} EventPaned layers are fixed by default.
smoothDragPan {Boolean} smoothDragPan determines whether non-public/internal API methods are used for better performance while dragging EventPane layers.
Constructor
SuperMap.Layer.EventPane Create a new event pane layer
Functions
destroy Deconstruct this layer.
removeMap On being removed from the map, we’ll like to remove the invisible ‘pane’ div that we added to it on creation.

Properties

smoothDragPan

{Boolean} smoothDragPan determines whether non-public/internal API methods are used for better performance while dragging EventPane layers.  When not in sphericalMercator mode, the smoother dragging doesn’t actually move north/south directly with the number of pixels moved, resulting in a slight offset when you drag your mouse north south with this option on.  If this visual disparity bothers you, you should turn this option off, or use spherical mercator.  Default is on.

isFixed

{Boolean} EventPaned layers are fixed by default.

Constructor

SuperMap.Layer.EventPane

Create a new event pane layer

Parameters

name {String}
options {Object} Hashtable of extra options to tag onto the layer

Functions

destroy

destroy: function()

Deconstruct this layer.

removeMap

removeMap: function( map )

On being removed from the map, we’ll like to remove the invisible ‘pane’ div that we added to it on creation.

Parameters

map {SuperMap.Map}
destroy: function()
Deconstruct this layer.
removeMap: function( map )
On being removed from the map, we’ll like to remove the invisible ‘pane’ div that we added to it on creation.
Create a new event pane layer
图层类。
地图类。 用于实例化map类创建一个新地图,实现地图在客户端的交互操作,可通过给创建的map添加图层和控件来扩展应用, 在创建地图时,如果没有添加指定的控件,则默认Navigation、PanZoomBar控件。
Close