You are here

function getlocations_tools_opl_template in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_tools/getlocations_tools.module \getlocations_tools_opl_template()
1 call to getlocations_tools_opl_template()
getlocations_tools_export_opl_form in modules/getlocations_tools/getlocations_tools.module
export getlocations markers to Openlayers

File

modules/getlocations_tools/getlocations_tools.module, line 447
getlocations_tools.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_tools_opl_template() {
  $template = '/* getlocations marker __TITLE__ */' . "\n";
  $template .= '$openlayers_styles = new stdClass();' . "\n";
  $template .= '$openlayers_styles->disabled = FALSE; /* Edit this to true to make a default openlayers_styles disabled initially */' . "\n";
  $template .= '$openlayers_styles->api_version = 1;' . "\n";
  $template .= '$openlayers_styles->name = ' . "'__NAME__';" . "\n";
  $template .= '$openlayers_styles->title = ' . "'__FULL_TITLE__';" . "\n";
  $template .= '$openlayers_styles->description = ' . "'__DESC__';" . "\n";
  $template .= '$openlayers_styles->data = array(' . "\n";
  $template .= "  'externalGraphic' => '__PATH__'," . "\n";
  $template .= "  'pointRadius' => '__RADIUS__'," . "\n";
  $template .= "  'fillColor' => '#FFFFFF'," . "\n";
  $template .= "  'strokeColor' => '#FFFFFF'," . "\n";
  $template .= "  'strokeWidth' => 1," . "\n";
  $template .= "  'fillOpacity' => 1," . "\n";
  $template .= "  'strokeOpacity' => 1," . "\n";
  $template .= "  'strokeLinecap' => 'round'," . "\n";
  $template .= "  'strokeDashstyle' => 'solid'," . "\n";
  $template .= "  'graphicWidth' => __WIDTH__," . "\n";
  $template .= "  'graphicHeight' => __HEIGHT__," . "\n";
  $template .= "  'graphicOpacity' => 1," . "\n";
  $template .= "  'graphicXOffset' => -__RADIUS__," . "\n";
  $template .= "  'graphicYOffset' => -__HEIGHT__," . "\n";
  $template .= "  'graphicName' => '__TITLE__'," . "\n";
  $template .= "  'labelAlign' => 'cm'," . "\n";
  $template .= ');' . "\n";
  return $template;
}