Blayter.com

CF_GoogleMap 1.4 Released

Well I have to say that I didn't get as much done in the 1.4 release that I would have liked to but I was able to make up enough progress yesterday that I wanted to go ahead and release it. Last minute yesterday I was asked to present the tag at the Denver ColdFusion users group and while I was waiting for my turn to present I was able to add in these features.

(1) Added the showTraffic attribute to the cf_googleMap tag.
(2) Added the showLocalSearch attribute to the cf_googleMap tag.
(3) Added a language attribute to the cf_googleMap tag.
(4) Added the enableZoomScroll to the cf_googleMap tag and defaulted it to true so a use can use their scroll wheel to zoom in and out
(5) Added the enableGE to the cf_googleMap tag and defaulted it to false to enable the Google Earth view of the map.

I also added some MSSQL User Defined Functions in the download as well that will help calculate distances in your data access layer.

The 1.5 version will be out shortly here. I figured out how I want to implement the point sets for various map levels and also figured out how to do the integrated driving directions without breaking the old way of doing driving directions.

Comments
This will come in handy for a project I'm working on. Saved me the heavy lifting so thanks much!
# Posted By Rafael Quinones | 6/12/08 1:54 AM
Thanks for presenting this monday night. It was wonderful to see this well written tag in use.
# Posted By chuck | 6/12/08 8:42 PM
Thanks for the presentation at the Denver CF users group. I already used it on my site and it works great. I mixed it in with some older map code.
http://www.assistedseniorliving.net/search/ (feel free to delete this)

I mixed it in with some older map code. I love how most of the code is hidden.

I would like to use your distance calculating sql function but I don't know what to do with it. Where does it live? In application.cfm? On the sql server?

Also, can you use the square root of (delta lat)^2 + (delta long)^2 to calculate distance and not need any cos.

Thanks again.
# Posted By Ken Teegardin | 6/14/08 7:46 PM
The SQL function lives on the MSSQL Server as a user defined function. In the 1.4 version you will see that there is a dbExamples folder that contains the SQL Script for creating the function on the server and some simple CFM to show an example of how to call it.
# Posted By John Blayter | 6/16/08 2:19 PM
Thank John, Now, how do I get the .sql function onto the server. I use HeidiSQL to interact directly with the database but I can find any way to upload the .sql file. Can it be done using some coldfusion code or can it be integrated into the query? Sorry if this in a stupid question but sql UDFs are totally new territory for me.
# Posted By Ken Teegardin | 6/16/08 7:00 PM
All you need to do is run it like you would run a query against a database and it will create the user defined function for you.
# Posted By John Blayter | 6/16/08 7:18 PM
Your cf_googlemap tag is awesome. Great work.

I'm trying to get some sidebar link functionality working, e.g, click on a link in the sidebar and the infowindow opens. It looks like you can do that through the GM_viewProperty function. I'm such a newbie that I can't figure out the syntax. Could you please provide a quick example of how you'd use the GM_viewProperty to make a link in the sidebar? Thanks.
# Posted By Patrick Wyman | 6/22/08 1:18 PM
Patrick,
Thanks for the nudge to get me to document something I needed to do a long time ago. I updated the documentation and uploaded it to my site (not on RIA forge yet) that includes an example of what you are looking for.
http://blayter.com/john/cf_googlemap/example10.cfm...
HTH,
John
# Posted By John Blayter | 6/23/08 1:45 PM
John,

Thanks. As always your examples are clear and concise.
# Posted By Patrick Wyman | 6/23/08 4:42 PM
I just wrapped up the initial coding on version 1.5 that now has functionality to load data in via AJAX and for integrated driving directions. I was lucky enough to have Michael Evangelista and Gene Lewis to help me in beta testing the new features. If anyone else wants to help me test please let me know.
# Posted By John Blayter | 7/14/08 8:09 AM