davidsalazar / coordinate-picker

jQuery Coordinate Picker
4 stars 0 forks source link

What is this

Requirements

  1. jQuery. Since the google maps coordinate selector is implemented as an iframe, those dependencies (google maps api v3, etc) are isolated and auto-loaded into that iframe.

Sample Usage

Please see sample html files to see real world examples.


var settings = {

    // Form input element selector for latitude
    lat_selector: '#lat',

    // Form input element selector for latitude
    long_selector: '#long',

    // Callback function that passes an object with the 2 properties (lat, long) in decimal format.
    // data = {lat: 00.00000000000000, long: 00.00000000000000}
    onComplete: function(data) {

    },

    // Optional starting query for map.
    starting_query: '78247' // address or zip code

};

$('#coordinate_picker').coordinate_picker(settings);

Installation

  1. Add the coordinate_picker directory to your web root or javascript directory.
  2. Load coordinate_picker/jquery.coordinate_picker.js and coordinate_picker/styles/smodal/shadow.css in the page you want to use this plugin.

Release Notes

Version 0.5 - July 8 2011 *Initial Release

Version 0.51 - July 8 2011

TODO