Created
February 20, 2017 09:43
-
-
Save svenl77/71e1fe016e63f9ba49289fcba452df47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function () { | |
| var $instance = jQuery('.buddyforms-pin').easypin({ | |
| init: '{"91":{"0":{"coords":{"lat":"303","long":"215.5"}},"canvas":{"src":"img/2011-12-18-23.51.12.jpg","width":"auto","height":"auto"}}}', | |
| limit: 1, | |
| exceeded: function(element) { | |
| alert('You only able to create one pin at the time ;)'); | |
| }, | |
| responsive: true, | |
| drop: function(long, lat, element) { | |
| console.log(long, lat); | |
| }, | |
| drag: function(long, lat, element) { | |
| console.log(long, lat); | |
| } | |
| }); | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment