Skip to content

Commit

Permalink
Fixing polygon options
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron west committed Oct 12, 2015
1 parent 0fcecfc commit 9c116b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/GoogleMaps_TemplatesService.php
Expand Up @@ -129,8 +129,8 @@ public function zoom($id, $level)

public function polygon($id, $points, $options = array())
{
craft()->templates->includeJs('new GoogleMaps.Polygon('.$id.','.$this->jsonEncode($points).','.$this->jsonEncode((object) $options).');');
}
craft()->templates->includeJs('new GoogleMaps.Polygon('.$id.','.$this->jsonEncode($points).').setOptions('.$this->jsonEncode((object) $options).');');
}

public function polyline($id, $points, $options = array())
{
Expand Down

0 comments on commit 9c116b5

Please sign in to comment.