Hello

I have Block with map location, that is visible withlocation node:
e.g node about the best beaches with Block map with beach location.
And on this map I can't see control about zoom (left, hight corner).

Why I don't see this?

CommentFileSizeAuthor
gm.JPG84.11 KBloko

Comments

leobaby’s picture

I am having the same problem, and I am also unable to set the zoom. It's as if the macro has no effect.

UnicornSong’s picture

me too
I am using the gMap block, this is the macro:

[gmap |id=block0 |zoom=10 |width=50% |height=200px |control=Small |type=Map |behavior=+notype] 

If i change the width this effects the map ( so I know Im looking at the right macro ), however i cannot get the control to show!
subscribing...

o0_Enigma_0o’s picture

subscribing...

beatnikdude’s picture

subscribing... Can't get gmap zoom controls on the map block.

fiLi’s picture

Subscribing... (me too)

beatnikdude’s picture

Title: Gmap location - missing control on the map » Gmap location - Unable to add control to the "Location map" block

In the function gmap_location_block_view(), line 754 of gmap_location.module in the gmap-5.x-1.0-beta3 (and previous) the 'controltype' is overridden.

I commented out line 754:
//$map['controltype'] = 'None';

I was then able to include the "controltype=Small" in the "Map Macro" setting of the "Location map" block.
There are other overridden properties in this function as well.

loko’s picture

BeatnikDude Thank You !!!
Work for me.
$map['controltype'] = 'None'; I have in 721 line.

Cheers for you.

Mysterious Britain’s picture

The above also works for me (thanks BeatnikDude) but, I'm unable to get the control to show for the map type, ie I'd like the user to be able to choose between Map, Hybrid and Satellite.

Anyone know how to fix this?

najibx’s picture

yes, commented out line 754: //$map['controltype'] = 'None'; now shows the control.

also change $map['behavior']['autozoom'] = FALSE;
TRUE to FALSE to it take the zoom level stated in the block

Why that is uncommented/set to TRUE in the first place? causing setting in block being ignored?

bdragon’s picture

Status: Active » Fixed

Why that is uncommented/set to TRUE in the first place? causing setting in block being ignored?

Because I hadn't gotten around to fixing up the default macros and taking out my workarounds.

This should now work properly.
http://drupal.org/cvs?commit=140184
http://drupal.org/cvs?commit=140187

najibx’s picture

oic. I can confirm that this is working as expected. No need to tweak the codes. Just do modification at the block config.
thanks man !

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

user654’s picture

Version: 5.x-1.x-dev » 7.x-1.x-dev

.

user654’s picture

.

kenorb’s picture