Google Maps

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Google Maps

Post by mazhar » Wed Oct 08, 2008 11:52 am

A few days ago i found some great stuff regarding the Google Maps here
http://www.codeproject.com/KB/custom-co ... ntrol.aspx.
Just for fun i tried to make it work with AbleCommerce and with a little effort i made it. I think it may be useful for some community members so i am posting it here. After installing the attached package all you need is to apply the GMAP scriptlet available in content section and specify your longitude latitude information as a pushpin in the Pushpin property. For example i just use the info available with the sample from the link above

Code: Select all

[[ConLib:GMAP CenterPoint="1, 43.66619, -79.44268" Pushpins="1, 43.65669, -79.45278|2, 43.66619, -79.44268|3, 43.67689, -79.43270" Width="100%" Height="600px"]]
You can specify multiple Pushpins by just providing a "|" bar as separation. There are many other samples available at the link i posted above, i just created a user control for one of them.

[Screen Shot]

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Google Maps

Post by AbleMods » Wed Oct 08, 2008 8:56 pm

Check this...
http://www.solunar.com/Solunar-Times-In ... 5C650.aspx

Move the marker and watch the latitude/longitude fields automatically populate the product template fields created by AC7.

Mine was accomplished with a .Net control that creates all the Google Javascript for you. I inject some additional javascript OnMouseMove to the marker that populates the HTML fields with the current pointer lat/long values.

You can find the .Net control here http://en.googlemaps.subgurim.net/

It makes working with Google Maps actually fun for .Net programmers

Oh and buy some Solunar Times while you're there - they work for anywhere on the planet :D
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Google Maps

Post by kastnerd » Tue Jan 13, 2009 7:08 am

I am hoping to use Google maps to map out a specific user group. About 1,000 to 1,4000 users will be in this group.

I am currently using some code from http://crystaldawn.net/
It works vary well i just need to enter the address info into its own database and it will populate the database with longitude and latitude.
He has update the code since the one im using. When i set a user into "dealer" group then they should show up on the map.

Post Reply