Expand marker by default

mango - June 16, 2006 - 18:55
Project:GMap Module
Version:5.x-1.x-dev
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

As I have seen on other websites created with Google Maps, there must be an option in the Google API to expand a marker by default. By default, you would not only see a red inverted raindrop, but also a full text box that pop-ups when you normally click on the marker.

In the Gmap documentation it is mentioned that there are more commands available in the gmap module parser. These commands seem not to be documented on Drupal.org. My request could then be interpreted in two ways.

1. Create an overview of additional commands and options that Gmap module users can manually add to the Gmap macro.

2. When using the Google Map Macro Editor, add the option 'Points (expanded by default)' to the drop-down menu under 'What happens when you click on the map:'. That way the user can easily differentiate between creating closed and expanded markers.

#1

webgeer - June 16, 2006 - 19:38

1. The features are relatively well documented on http://webgeer.com/gmapdemo (although this includes documenting a number of xmaps features which are no longer supported). If someone wants to create a page a drupal.org that would be fine with me.

2. The macro creator needs quite a bit of updating. I don't really have time to do it right now, but what I would like to see is that when you click on a marker an info window opens and gives you a textbox to enter the html that you want to have appear in the info window when clicked and gives you a drop down menu of icons you can change it to. I would also like to add some more editing features for lines (remove last point, change color, change thickness, change opacity). None of this is that difficult to do, would just take a little bit of time...

#2

mango - June 17, 2006 - 09:12

I have studied the documentation page you refer to (http://webgeer.com/gmapdemo) before submitting my request. Unfortunately, there is no mention of expanding markers by default. I cannot find information about the parser either, so my options to investigate this issue end there.

#3

webgeer - June 19, 2006 - 07:25
Component:User interface» Documentation

I'm not sure what you mean by "expanding markers".

If you mean opening an info window, then it can be seen on that page. click on marker to see what is in a window and then look at the macro that was created to see how that was inserted. This is referred to as a "text popup" on that page. If you mean the ability to have the info window opened automatically when the page is opened without clicking, that does not exist. It could be done, but I'm not sure what the best way of adding that to the macro is.

#4

mango - June 22, 2006 - 11:14

If you mean the ability to have the info window opened automatically when the page is opened without clicking, that does not exist. It could be done, but I'm not sure what the best way of adding that to the macro is.

That is what I meant: to have certain "text popups" open (or popup) by default. For example, on page http://webgeer.com/gmapdemo, if you click on marker number 1 the text popup shows "Kits pool". I would like to set up a gmap so that the text popup is displayed by default for particular markers of my choice.

#5

webgeer - June 23, 2006 - 05:49

Any thoughts on how you think it should work from a user perspective?

I will add this ability for the associative array. I think it could also be added for the macro, but I'm not sure what would be the best way of doing it. One idea I have if the text starts with a "*" then it will do that as an open window. However, if you have any other ideas on ways to do it I could consider that too.

#6

Joe D - June 26, 2006 - 21:06
Version:6.x-1.x-dev» 4.7.x-1.x-dev

Is there a way to control the size of the text box popup for a marker and/or the position where it pops up relative to the marker?
I want to make the box smaller and have it pop up below the marker.
Thanks

#7

webgeer - June 27, 2006 - 04:53

The size of the marker can be set be setting the width for the style .gmap-popup. You can edit the gmap.css file to do this. However, this only lets you set one width for all of the pop-up windows. Alternatively, if you are writing a module or creating the associative array some other way, you can set the width by defining the marker item map[markers][]['win-width']='200px'

I know of no way of making Google open the window below the marker. I think that it may be possible with a third party script, but I would prefer to keep as much of the code using the Google API as possible.

Both of these concepts are too complicated to ever be included as part of the macro.

#8

bdragon - September 3, 2007 - 23:36
Version:4.7.x-1.x-dev» 5.x-1.x-dev
Status:active» fixed

I'm working on closing bugs at the moment.

In any case, the 5.x version has had "expand by default" capability for a while now, but it wasn't exposed to the macro. I just (as of about a minute ago) extended the macro syntax like so (wait for the next snapshot or try latest DRUPAL-5 from CVS to experiment with it:)

[gmap |markers=big blue::40.713955826286046,-5.9765625%autoclick:I am a Popup]

After the coordinates of a marker and before the optional :, you can put tokens in. Currently the only one supported is "autoclick", which will make a marker act like it was clicked as soon as the map loads.

#9

Anonymous - September 17, 2007 - 23:41
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.