DP
map.on('mousemove', 'highlight', function () {
alert("Hello World!");
});
Size: a a a
QI
map.on('mousemove', 'highlight', function () {
alert("Hello World!");
});
QI
QI
A
QI
var highlightLayer = {
id: 'highlight',
type: 'custom',
QI
Adds a listener for events of a specified type occurring on features in a specified style layer.
Parameters
type(string)The event type to listen for; one of 'mousedown' , 'mouseup' , 'click' , 'dblclick' , 'mousemove' , 'mouseenter' , 'mouseleave' , 'mouseover' , 'mouseout' , 'contextmenu' , 'touchstart' , 'touchend' , or 'touchcancel' . mouseenter and mouseover events are triggered when the cursor enters a visible portion of the specified layer from outside that layer or outside the map canvas. mouseleave and mouseout events are triggered when the cursor leaves a visible portion of the specified layer, or leaves the map canvas.
layerId(string)The ID of a style layer. Only events whose location is within a visible feature in this layer will trigger the listener. The event will have a features property containing an array of the matching features.
listener(Function)The function to be called when the event is fired.
Returns
Map: this
QI
A
QI
A
A
QI
QI
A
QI
model.scale(3,3,3);По видимому с кастомными типами слоев етот метод не работает...
a
a