Register   Login
     
  Latest Posts  
RE: Article URL Rewriting Question?
by marta@interdigital.es on 11/21/2008 11:10 PM
RE: AutoFill fields by selection Type
by nickdotnet on 11/21/2008 10:15 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 7:46 PM
RE: Redirecting non-DNN generated urls
by slonecke@dhw.idaho on 11/21/2008 6:49 PM
RE: sub types
by Jessynoo on 11/21/2008 6:45 PM
RE: Subscription setup questions?
by nassoa on 11/21/2008 5:59 PM
Subscription setup questions?
by nassoa on 11/21/2008 5:43 PM
Edit Comments
by swebster on 11/21/2008 5:35 PM
RE: Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:26 PM
Negative role tokens: ISNOTINROLE, ISAGENTNOTINROLE
by richardcook on 11/21/2008 5:12 PM
  Forums  
Subject: Google Maps integration
Prev Next
You are not authorized to post a reply.

Author Messages
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

12/01/2006 9:48 AM  

I've been playing in my sandbox with the Google API and have added a Google Map to my Property module.
It's all a bit clunky at the moment, but the principal's sound.

I've edited the view.item template to include the java for the google and create a DIV to hold the map.
At the moment the co-ordinates are just added to the property as a couple of custom fields and there is no validation (i.e. it will crash if no values are suppplied). 
I plan to retrieve the lat lon from the address using the geocode routines from Google - this would be best done in the add property form.

Any comments or suggestion gratefully received.

jamie edwardsUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77


12/01/2006 10:07 AM  
Hey, that looks great!
jamie edwardsUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77


12/01/2006 10:10 AM  
could you post the code you used for this?
IT LackeyUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:18

12/01/2006 10:20 AM  
I agree, Looks Great! I am sure many of us could put this to good use. If you wouldn't mind posting the code many of us would appreicate it.
Net DoctorsUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:114


12/01/2006 10:30 AM  
Looks good!

Couple of comments..

1. when you click on the mappoint can you load information about the property in the pop up buuble like the address or have other details that are extracted from the property info? I have even seen some map modules where you can place a small image in there.

2. Is it possible to map the other properties near it if the map is zoomed out enough? I think a map contianing all the properties would be really useful to see what other properties might be around the one you are interested in from a real estate standpoint at least.


Net Doctors, Inc.
www.netmds.com
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

12/01/2006 10:31 AM  

Most of the java is taken from an article written by Scott Jennings and published on the XMOD site the feedback form is also based on an idea of his - thanks Scott.   There's loads of info about the API on the Google Maps site and groups.

I've include the html for the view item below, the css just specifies the size of the DIV.  I've renamed the file with the extension jpg to add it as an attachment.






caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

12/01/2006 10:33 AM  
Any idea what file extensions will work as attachments?
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

12/01/2006 10:37 AM  
Posted By netmds on 12/01/2006 10:30 AM
1. when you click on the mappoint can you load information about the property in the pop up buuble like the address or have other details that are extracted from the property info? I have even seen some map modules where you can place a small image in there.

2. Is it possible to map the other properties near it if the map is zoomed out enough? I think a map contianing all the properties would be really useful to see what other properties might be around the one you are interested in from a real estate standpoint at least.


I was thinking of using a master map to drive the property search, which would show all properties in the current window - I guess you could include it at the property level.  It's all pretty trivial - the Google API is very powerful.  The popup again is very straightforward to add.
Bertrand DulucUser is Offline
Silver Membership
Nuke Addict
Nuke Addict
Posts:95


12/02/2006 1:45 PM  
Hi Caroig,

I'm very intereted by the email capability on your running property agent module. It's very usefull for visitors to request "more infos" on a specific product .
Could you let me know how you did this (I saw XMOD Formview on the message module). Is it difficult to do this with XMOD?

Sincerely.

Bertrand
Luxembourg
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12442


12/03/2006 2:51 AM  
I 'll be adding a "request information" type form that you can add to templates as part of the agent piece.

The google API would be good as a custom field that would possible search upon location when entering the property so the lat/long would already be worked out when rendering the page? And allow the user to select the correct entry if multiple entries are returned for address..

Scott McCulloch
Site Administrator
caroigUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:278

12/04/2006 1:14 AM  
I've attatched the view.item.html. The css for the div containing the map is in template.css and is just the following:-

#propmap {
width:740px;
height:400px;
}
The feedback form is pretty easy to do in xmod, but if it's going to be integrated then all the better.

You have to get a google maps key value from their site - the keys are url specific.

Attachment: View.Item.zip

tmalerUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:170


2/14/2007 7:13 AM  

Has anyone add the geocode routines and the validation for Google Map.  I am trying to build a directory on our website.

Thanks for any help!

Tim Maler


Tim Maler
www.dvdlit.com
AlbertramsbottomUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:404


5/15/2008 2:10 AM  
I think postcodes zipcodes are the way forward and I beleive that this module will be complet when we have an implementation of Gooogle maps.

I read that google maps is able to recoginse more than 40 different postcode formats so that should work. The only problem for me is the fact that I havent got a clue how to pass a postcode feild through to an iframe that points to google.

Any ideas, im sure this can be done

www.classcampers.com
www.worldscheapesthomes.co.uk
www.beebiplayer.co.uk
www.internetinsurancequotes.co.uk
www.vwbussales.co.uk
You are not authorized to post a reply.
Forums > Modules > Property Agent > Google Maps integration



ActiveForums 3.7