klox7 VIP
Total posts: 914
20 Oct 2014 11:54

Hello,

does anybody know how to enable draggable map in location field output?

Regards

Last Modified: 29 Oct 2014


pepperstreet VIP
Total posts: 3,837
20 Oct 2014 23:18

Obviously there is no backend parameter...
So, you have to alter the field output template. Or make a copy of it:

▸ components ▸ com_cobalt ▸ fields ▸ geo ▸ tmpl ▸ output ▸ default.php

Checkout the javascript function initializ_ at line 210+
See around line 218 for map options
Search fo draggable:0 and change 0 to 1

var map<?php echo $record->id.$this->id;?> = new google.maps.Map(document.getElementById("map_canvas_<?php echo $record->id;?>_<?php echo $this->id;?>"), {zoom:<?php echo $params->get('zoom', 15);?>,center:myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP, draggable:0, scrollwheel:0});


klox7 VIP
Total posts: 914
21 Oct 2014 06:44

pepperstreet Obviously there is no backend parameter...

There should be :). But great, thanks!

And is there any other way to enable street view instead of dragging that little dude on map? Split view isn't my choice.


pepperstreet VIP
Total posts: 3,837
29 Oct 2014 01:23

Regarding "draggable"... did it work for you?

klox7 And is there any other way to enable street view instead of dragging that little dude on map? Split view isn't my choice.

What is your choice?


klox7 VIP
Total posts: 914
29 Oct 2014 07:22

pepperstreet Regarding "draggable"... did it work for you?

Yes.

pepperstreet What is your choice?

Clicking on marker shows info window with street view or a button for street view directly on map.

Powered by Cobalt