#718 – How to disable the dragging in google maps

Posted in ‘Taxi Booking for Joomla’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 13 March 2016 22:27 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
 Hi, I would like to disable the dragging in map, is it possible ?

Best regards.
Serguei.
 
Monday, 14 March 2016 18:16 GMT
martso
SumUp for Taxi Booking J4
Hi,
the map is draggable so customers can check their route, pick up and drop off points.
It may be possible to add an option at the back end to make the map not draggable but this will require some custom development which we will have to charge separately for.

Hope this helps.
 
Monday, 14 March 2016 23:15 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
Hi Marian, I found this on stackoverflow :
You can set draggable: false in the setOptions() method on your map object:
map.setOptions({draggable: false});
Is there some kind of this code in google map app, so I can modify it by myself ?


Best regards.
 
Thursday, 28 April 2016 17:58 BST
ronniee
RedSys for Taxi Booking
Hi Serge,

I don't know if you have already fixed your problem, but yes, that should solve your problem. You have to add this code in components\com_taxibooking\assets\js\onepage_taxibooking.js around line 893.

var myOptions = {
zoom: parseInt(response.msg.map_zoom),
mapTypeId: google.maps.MapTypeId.ROADMAP
};

should be

var myOptions = {
zoom: parseInt(response.msg.map_zoom),
mapTypeId: google.maps.MapTypeId.ROADMAP,
draggable: false
};

Hope this helps
Ronniee
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

KANEV Web Development limited is not affiliated with or endorsed by the Joomla Project or Open Source Matters.

KANEV Web Development limited is registered in England and Wales #8902407