This is a migrated thread and some comments may be shown as answers.

Map Zoom Control via mouseWheel

1 Answer 90 Views
Map
This is a migrated thread and some comments may be shown as answers.
Gonzalo
Top achievements
Rank 1
Gonzalo asked on 15 Jul 2014, 11:57 AM
Is it possible to control the direction of map zoom via the mousewheel?
I Have the following code as a test. The button controls work fine but the mouse wheel only zooms in.

any ideas?

    $("#map").kendoMap({
        center: [48,-103],
        zoomable: true,
        layers: [{
            type: "tile",
            urlTemplate: "http://a.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png",
            attribution: "© OpenStreetMap"
        }],
        markerDefaults: {
            shape: "pin"
        },
        markers: [{
            location: [48, -103]
        }, {
            location: [48, -100]
        }]
    });

var map = $("#map").data("kendoMap");
 map.bind("zoomStart", function(e) {
        console.log("zoom start @ " + e.sender.zoom());
    });

 map.bind("zoomEnd", function(e) {
     console.log(e.sender)
        console.log("zoom end @ " + e.sender.zoom());
    });

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 16 Jul 2014, 03:26 PM
Hello Gonzalo,

I have already replied to the support ticket that you have submitted on the same subject.

For convenience I will paste my reply on the forum as well:

Currently this feature is not supported but I would suggest to submit your request in Kendo's UserVoice so other members of the community can evaluate, comment on and vote for it.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Map
Asked by
Gonzalo
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or