You are here

function theme_gm3_rectangle_button in Google Maps API V3 7

Polyline tools button

File

./gm3.theme.inc, line 102

Code

function theme_gm3_rectangle_button($variables) {
  theme('gm3_beautytip', array(
    'selector' => '.gm3-tools-button[data-gm3-class="rectangle"]',
    'text' => t('Click to enable adding/removing rectangles.<br/>Add a rectangle by clicking on the map at the top left of a rectangle, and then at the bottom right.'),
  ));
  return '<div data-gm3-class="rectangle" class="gm3-tools-button"><p>+ ' . t('Rectangle') . '</p></div>';
}