/[drupal]/contributions/modules/geo/modules/geo_field/geo_field.formatters.inc
ViewVC logotype

Diff of /contributions/modules/geo/modules/geo_field/geo_field.formatters.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Sat Feb 28 22:12:30 2009 UTC revision 1.7, Sun Mar 1 03:38:54 2009 UTC
# Line 1  Line 1 
1  <?php // $Id: geo_field.formatters.inc,v 1.5 2009/02/28 20:38:55 vauxia Exp $  <?php // $Id: geo_field.formatters.inc,v 1.6 2009/02/28 22:12:30 vauxia Exp $
2  /**  /**
3   * @file   * @file
4   * Field formatters for geo_field fields.   * Field formatters for geo_field fields.
# Line 45  function theme_geo_formatter_svg($elemen Line 45  function theme_geo_formatter_svg($elemen
45      $data = ' cx="'. $data['x'] .'" cy="'. $data['y'] .'" ';      $data = ' cx="'. $data['x'] .'" cy="'. $data['y'] .'" ';
46    }    }
47    elseif($data['type'] == 'polygon' || $data['type'] == 'linestring') {    elseif($data['type'] == 'polygon' || $data['type'] == 'linestring') {
 /*  
     $set = FALSE;  
     $path = '';  
     foreach($points as $point) {  
       $move = '';  
       if ($set == TRUE) {  
         $move = ' ';  
         $set = FALSE;  
         $space = ' ';  
       }  
       else {  
         $set = TRUE;  
         $space = '';  
       }  
       $path .=  $point .' '. $move;  
     }  
 */  
48      $data = ''. $data['value'] .'';      $data = ''. $data['value'] .'';
   /*  
     foreach ($points as $point) {  
       $data .= join(',', $point).' ';  
     }  
 */  
49    }    }
50    
51    $bbox = $element['#item']['bbox'];    $bbox = $element['#item']['bbox'];
# Line 92  function theme_geo_formatter_svg($elemen Line 70  function theme_geo_formatter_svg($elemen
70    $out = '<?xml version="1.0" standalone="no"?>    $out = '<?xml version="1.0" standalone="no"?>
71  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
72    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';    "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';
   // $out .= '<svg width="100%" height="100%" viewBox="244000 -4231000 64000 81000" >';  
   // $out .= '<svg id="mainMap" x="0" y="15" viewBox="244000 -4231000 64000 81000" width="553" height="700">';  
   // viewBox="-93.26314092087 45.004209025261 .03 .03"  
73    $out .='<svg id="mainmap" width="50px" height="50px"    $out .='<svg id="mainmap" width="50px" height="50px"
74    viewBox=" '. $y .' '. $x .' '. $width .' ' . $height .'"    viewBox=" '. $y .' '. $x .' '. $width .' ' . $height .'"
75    overflow="visible"    overflow="visible"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2