StaceyApp
Out of context: Reply #13
- Started
- Last post
- 17 Responses
- heavyt0
transcript of emails in case you still think I didnt do you a favour:
-------
Thanks man, this map is killing me. Again, here's what I'm going for:
http://www.tastingroomwines.com/…
Just for testing purposes, I threw all of their code on a page, updated a few paths, and swapped in my key and it's a no go:
http://staging.hellomynameisad.a…
Can you help? It'd be much appreciated.
Thanks,
--
Adam Robertson
www.hellomynameisad.am--------------------------------...
Hi Adam,
I can get you a map that is working. Just want to clarify how much you want it to do. do you just need to have 3 or 4 points with infowindows (bubbles) like this example you sent?Thanks,
TR1--------------------------------...
Hey Todd,
Yep, just a map with a couple of points with infowindows and most importantly, the directions with a "from" field and "to" dropdown with the couple of points/locations. Essentially, the exact same map as the example I sent minus the styling. I can style it and add my addresses/geocodes myself. If I can just get something that works and allows me to play around with.
Thanks again,
Adam
--------------------------------...
Adam,
I have attached all the code you'll need.
There is an array (commented) that stores the addresses you want to create points for on page load. You can add html to them (like <br />) if you choose. That would mostly be for how the address displays in the bubble.
The directions pretty much take care of themselves, but you may want to switch that "to:" to a select menu with the values of each option being the location of the business this is being built for.Should be pretty simple for you to digest the code. IF you have any questions, hit me on AIM: xxxxxxxxxx.
Thanks,
TR1--------------------------------...
Thanks Todd, I'll play around with it this afternoon. Quick question... so if I change "to:" to a select menu, what value do I add? Just the actual location (e.g. 7245 W Center Ave Lakewood, CO 80226)?
Also, do you have any experience with select menu customization? I've been trying something called sexy-combo but it's a little buggy.
Thanks again,
Adam
--------------------------------...
Adam,
For the select menu - make sure to keep that same ID as teh text input uses. The JS function pulls the value from that by ID. The value of the options should be just as you mentioned, a regular address as you would type it into the google maps page if you were looking for an address. My customization experience with those doesnt go beyond css attributes.Well, holler if you run into any troubles with that map. Otherwise, I can use that $50 you mentioned. Maybe you can Paypal it to me.
Thanks,
TR1