Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Cornford committed Sep 12, 2016
2 parents eb8b0f0 + 62edaae commit f143cd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -207,7 +207,7 @@ This event is fired when the user stops dragging the marker.
The `informationWindow` method allows an information window to be added to to a map, with latitude, longitude, content, and optional parameters for options.

Mapper::informationWindow(53.381128999999990000, -1.470085000000040000, 'Content');
Mapper::informationWindow(53.381128999999990000, -1.470085000000040000, 'Content', ['open' => true, 'markers' => ['title' => 'Title']]);
Mapper::informationWindow(53.381128999999990000, -1.470085000000040000, 'Content', ['open' => true, 'maxWidth'=> 300, markers' => ['title' => 'Title']]);
Mapper::map(52.381128999999990000, 0.470085000000040000)->informationWindow(53.381128999999990000, -1.470085000000040000, 'Content', ['markers' => ['animation' => 'DROP']]);

### Polyline
Expand Down
6 changes: 6 additions & 0 deletions src/views/marker.blade.php
Expand Up @@ -65,6 +65,12 @@
content: {!! json_encode($options['content']) !!}
});

@if (isset($options['maxWidth']))

infowindow_{!! $id !!}.setOptions({ maxWidth: {!! $options['maxWidth'] !!} });

@endif

@if (isset($options['open']) && $options['open'])

infowindow_{!! $id !!}.open({!! $options['map'] !!}, marker_{!! $id !!});
Expand Down

0 comments on commit f143cd2

Please sign in to comment.