This project is read-only.

Data Binding - Give your feedback

Feb 1, 2008 at 7:24 AM
Hi folks,
As you can see in my next planned release 3.0 the main focus will be on making GoogleMap control a DataBound control.
For example to be able to attach any kind of DataSource to Markers (like MakersDataSourceID='SqlDataSource1')etc.
However it is a matter of implementation.
That's why I'm creating this thread to hear your ideas or suggestions.
Please, feel free to share your opinion of how and what should be, what you think will convenient to have etc.

Thanks in advance in you participation.

Regards,
Velio
Feb 9, 2008 at 1:52 PM
i think it's a fantastic feature!
do your best work, guy!

regards

Emiliano
Feb 10, 2008 at 6:32 AM
This is a very good idea. May be the data source could then provide the Marker properties like Text, icon style, lat/long, onClick handler etc...
Keep up the good work...

thanks for all your hard work!

kebin
Feb 13, 2008 at 1:22 AM
Data Binding would be GREAT.

Is there anyway to handle merging data with your control now in code behind or something?

Great job btw.
Feb 13, 2008 at 8:03 AM
Hi,
Yes, there is. You can for exmple get your data in DataReader, if it is in DB, and the cycling through record to add markers to the control in the code behind.
Let's say you google map control is GoogleMap1 and data reader is reader and data columns are Address and Message (it could be with Latitude/Longitude in same way), the you code should look something like:

protected void Page_Load(object sender, EventArgs e) {
 
        if (!this.IsPostBack) {
            SqlDataReader reader;
            // TODO real data is fetched to reader here
            GoogleMarker marker;
            while (reader.Read()) {
                marker = new GoogleMarker();
                marker.Address = Convert.ToString(reader["Address"]);
                marker.Text = Convert.ToString(reader["Message"]);
                GoogleMap1.Markers.Add(marker);
            }
        }
    }

Hope this helps.
Velio
Jul 5, 2008 at 1:08 PM
Is there a way to store map click address to a database?  I saw the capture click sample but I would like to capture click events to a database or something else.

Thanks,
Rey