ScrollWheelZoom not working in MapQuest-GL?

7 posts / 0 new
Last post
FlyingDogApps
ScrollWheelZoom not working in MapQuest-GL?

Hi Folks,

I'm new to mapquest and was able to embed a map using MapQuest-GL.js.

When setting the mqgl.Map and setting aditional options, adding "scrollWheelZoom: false" doesn't work.

window.onload = function() {

var map = new mqgl.Map('map', 'mykey',{

center: [-122.7,42.2],

zoom: 10,

minZoom: 9.8,

maxZoom:11,

scrollWheelZoom: false

});

I've tried it in controls:{} as well. Still nothing.

Any suggestions? 

 

Thanks!


MQBrianCoakley
The scrollWheelZoom option is
The scrollWheelZoom option is for the MapQuest.js map, not MapQuestGL.js.

FlyingDogApps
That makes sense.

That makes sense.
Do you know how to disable it in MapQuestGL.js?
Thanks!


MQBrianCoakley
It is not an option that I'm
It is not an option that I'm aware of. If I find it, I'll post it here.

FlyingDogApps
Thanks, I appriciate the

Thanks, I appriciate the effort. 
I basically want to add a map to a website. I have about 20 markers with costum popups. Got most of it to work with the expection of scrollWheelZoom and the tile.
Should I be using a different API?

 


MQBrianCoakley
While the MapQuest.js SDK is
While the MapQuest.js SDK is raster-based and can't do the vector-based functions, it is a more mature and more functional JavaScript mapping SDK.

FlyingDogApps
That did the trick. Thank you

That did the trick. Thank you very much!