Size: a a a

2019 April 26

DP

Darafei Praliaskouski in Mapbox чат
источник
2019 May 23

QI

Quantum Incognito in Mapbox чат
Здравствуйте, подскажите пожалуйста, почему не срабативает действие:
map.on('mousemove', 'highlight', function () {
 alert("Hello World!");
});
источник

QI

Quantum Incognito in Mapbox чат
Слой кастомный...
источник

QI

Quantum Incognito in Mapbox чат
источник

QI

Quantum Incognito in Mapbox чат
Или такая возможность не предусмотрена ?
источник

A

Alex CherryTea in Mapbox чат
а что за второй аргумент "highlight"
источник

QI

Quantum Incognito in Mapbox чат
var highlightLayer = {
id: 'highlight',
type: 'custom',
источник

QI

Quantum Incognito in Mapbox чат
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

Quantum Incognito in Mapbox чат
layerId
источник

A

Alex CherryTea in Mapbox чат
это из доки мапбокса?
источник

QI

Quantum Incognito in Mapbox чат
Да
источник

A

Alex CherryTea in Mapbox чат
странно, в доке вижу немного другое
источник

A

Alex CherryTea in Mapbox чат
источник

A

Alex CherryTea in Mapbox чат
собственно так и юзал всегда
источник

QI

Quantum Incognito in Mapbox чат
Там два
источник

QI

Quantum Incognito in Mapbox чат
С типом fill и line работает, а вот на custom'е не срабативает...
источник

A

Alex CherryTea in Mapbox чат
Quantum Incognito
Там два
о прикольно, не замечал второй
источник

QI

Quantum Incognito in Mapbox чат
У меня проблема такая, есть 3д модель, загруженная из *.gltf файла с помощью библиотеки three.js и GLTFLoader.js, мне надо чтоб при навидении курсора мишы на модель, запускалась анимация или допустим
model.scale(3,3,3);
По видимому с кастомными типами слоев етот метод не работает...
источник
2019 May 25

a

as118 in Mapbox чат
Привет
источник

a

as118 in Mapbox чат
Может кто помочь сделать карту на mapbox gl?
источник