das88
26 Dec 2006, 1:41 PM
I've been using Jack's data editor and date picker code as a starting point to create a new type of a editor - a GeoEditor. Basically the idea is have latitude and longitude in a editor grid cell, someone can edit the values directly in the cell or use a dropdown to access a MapPicker. The MapPicker access the Google maps API and lets the user move around a marker to select an exact location.
I used Google's API to create some control buttons: Help, Re-Center, Cancel, and Save.
I would like Cancel to close the MapPicker and revert back to original latitude and longitude values and Save should just close the MapPicker. Right now these buttons just zoom the map or fdire debugger for Firebug.
To hide the MapPicker, the controls I create using the Google need to access methods from the GeoEditor. Unfortunately, I am not very strong in JavaScript OOP and do not know how to make these methods accessible. Any help would be greatly appreciated.
The example code is located at http://www.dschulman.com/geoeditor/
I used Google's API to create some control buttons: Help, Re-Center, Cancel, and Save.
I would like Cancel to close the MapPicker and revert back to original latitude and longitude values and Save should just close the MapPicker. Right now these buttons just zoom the map or fdire debugger for Firebug.
To hide the MapPicker, the controls I create using the Google need to access methods from the GeoEditor. Unfortunately, I am not very strong in JavaScript OOP and do not know how to make these methods accessible. Any help would be greatly appreciated.
The example code is located at http://www.dschulman.com/geoeditor/