0

We have this large map of United States on our website and we are trying to see it well on mobile. As the map is too large we lose some functionalities on mobile view like dragging.

Is there any possibility to have dragging capability for mobile using cartoDB?

I've changed this property to the code:

    map = new L.Map('cartodb-map', {
        center: [36, -96],
        zoom: 4,
        zoomControl: false,
    })

    // Enable drag handlers.
    map.dragging.enabled();

But is working just for desktop.

1

There is a typo in your code. The method is .enable() without the d. You can check a working example here. It is working on my smartphone (Huawei).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.