/[drupal]/contributions/modules/gmap/js/gmap_shapes.js
ViewVC logotype

Diff of /contributions/modules/gmap/js/gmap_shapes.js

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

revision 1.6, Mon Apr 6 20:21:49 2009 UTC revision 1.7, Mon Apr 6 21:23:17 2009 UTC
# Line 1  Line 1 
1  /* $Id: gmap_shapes.js,v 1.5 2009/02/11 20:21:41 bdragon Exp $ */  /* $Id: gmap_shapes.js,v 1.6 2009/04/06 20:21:49 bec Exp $ */
2    
3  /**  /**
4   * @file   * @file
# Line 68  Drupal.gmap.addHandler('gmap', function Line 68  Drupal.gmap.addHandler('gmap', function
68        style[3] = '#' + style[3];        style[3] = '#' + style[3];
69        style[4] = style[4] / 100;        style[4] = style[4] / 100;
70      }      }
71    
72        if (shape.type == 'encoded_line') {
73          shape.color = style[0];
74          shape.weight = style[1];
75          shape.opacity = style[2];
76        }
77        else if (shape.type == 'encoded_polygon') {
78          $.each(shape.polylines, function(i, polyline) {
79            polyline.color = style[0];
80            polyline.weight = style[1];
81            polyline.opacity = style[2];
82          });
83          shape.fill = true;
84          shape.color = style[3];
85          shape.opacity = style[4];
86          shape.outline = true;
87        }
88    
89      $.each(style, function (i, n) {      $.each(style, function (i, n) {
90        cargs.push(n);        cargs.push(n);

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

  ViewVC Help
Powered by ViewVC 1.1.2