Skip to content

Commit

Permalink
Updated README.md with jQuery as soft dependency.
Browse files Browse the repository at this point in the history
Updated bower version.
  • Loading branch information
viskin committed Apr 17, 2015
1 parent eeb3f12 commit 0a0e097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ So dependencies look like follows:
<!-- SlidingMarker hides details from you - your markers are just animated automagically -->
<script src="SlidingMarker.min.js"></script>
```
Note: [jQuery](http://jquery.com/download) is soft dependency, you can prefer not to include it. But if you decide not to,
you should provide [alternative animation routine](#SlidingMarker.options.animateFunctionAdapter), and should not include
jquery.easing and markerAnimate libraries.

# Use

Expand Down Expand Up @@ -145,6 +148,7 @@ In addition, following options are supported to fine-tune animation for each mar
- **easing** - "easeInOutQuint" by default. Possible values are same as in
[jquery.easing](http://gsgd.co.uk/sandbox/jquery/easing/) library.
- **duration** - in ms, 1000 by default.
<a name="SlidingMarker.options.animateFunctionAdapter"></a>
- **animateFunctionAdapter** - by default, SlidingMarker assumes that google.maps.Marker.prototype is enhanced with animateTo method, but you can provide alternative animation adapter. It should be function with following declaration:
animateFunctionAdapter(marker, destPosition, easing, duration).

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "marker-animate-unobtrusive",
"main": "SlidingMarker.js",
"version": "0.2.0",
"version": "0.2.1",
"description": "Unobtrusive Google Maps animated marker",

"homepage": "https://github.com/terikon/marker-animate-unobtrusive",
Expand Down

0 comments on commit 0a0e097

Please sign in to comment.