Skip to content
Snippets Groups Projects
Commit 527a0e8c authored by Rebecca White's avatar Rebecca White
Browse files

add a class around map bubble contents. you can now set width and height on...

add a class around map bubble contents. you can now set width and height on .gmap-popup in your css and map bubbles will grow to fit it.
parent 707df1c1
No related branches found
No related tags found
No related merge requests found
......@@ -870,6 +870,11 @@ function theme_gmap($element) {
}
gmap_map_cleanup($map);
// Add a class around map bubble contents.
foreach ($map['markers'] as $i => $marker) {
$map['markers'][$i]['text'] = '<div class="gmap-popup">' . $marker['text'] . '</div>';
}
switch (strtolower($map['align'])) {
case 'left':
$element['#attributes']['class'] .= ' gmap-left';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment