egoselfaxis
asked on
Seeking assistance with Google Maps API integration
I'm looking to replicate this same type of popup Google Maps functionality on a website that I'm developing (complete with different locations plotted on the map, each with some kind of popup preview -- plus the zoom functionality, .. search fields and filters, etc):
https://www.tripadvisor.com/Attractions-g34227-Activities-Fort_Lauderdale_Broward_County_Florida.html#MAPVIEW
Aside from the basic Google Maps API documentation .. can anyone here recommend some good tutorials or code examples that will help me get started with all of this? I suspect that I've got quite a bit of work ahead of me, and I'm thinking that using some kind of boilerplate might be in order. Please advise.
Thanks,
- Yvan
https://www.tripadvisor.com/Attractions-g34227-Activities-Fort_Lauderdale_Broward_County_Florida.html#MAPVIEW
Aside from the basic Google Maps API documentation .. can anyone here recommend some good tutorials or code examples that will help me get started with all of this? I suspect that I've got quite a bit of work ahead of me, and I'm thinking that using some kind of boilerplate might be in order. Please advise.
Thanks,
- Yvan
ASKER
Dustin - thanks so much for your reply. I see now that Google now charges for access to their Maps API .. which was a bit of a disappointment and has stalled me temporarily, unfortunately.
https://developers.google.com/maps/documentation/javascript/usage-and-billing
Still .. I just have a few questions regarding the code example you've provided.
1) How exactly do I call the mapLoad method? More specifically, how would I load up a map that has multiple different locations plotted on the map? I'm guessing it'd be something like the following, but I'm honestly not sure.
2) Aside from dropping in the JS library & API key in the page, .. are there any other bits of JavaScript that need to be added?
3) Does this code example handle popup previews and filtering capabilities, etc? If not, could you perhaps steer me to where I might find some online documentation pertaining to this?
Thanks again!
- Yvan
https://developers.google.com/maps/documentation/javascript/usage-and-billing
Still .. I just have a few questions regarding the code example you've provided.
1) How exactly do I call the mapLoad method? More specifically, how would I load up a map that has multiple different locations plotted on the map? I'm guessing it'd be something like the following, but I'm honestly not sure.
mapLoad("1600 Pennsylvania Avenue NW Washington, DC 20500","myDiv");
mapLoad("555 Pennsylvania Avenue NW Washington, DC 20500","myDiv");
2) Aside from dropping in the JS library & API key in the page, .. are there any other bits of JavaScript that need to be added?
3) Does this code example handle popup previews and filtering capabilities, etc? If not, could you perhaps steer me to where I might find some online documentation pertaining to this?
Thanks again!
- Yvan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dustin - thank you so much! I figured out how the whole free tier thing works, and also started getting a handle on all of the possibilities by reviewing the documentation.
Cheers,
- Yvan
Cheers,
- Yvan
Pass in the Address you want to find, then the target <div> element (with an id).
Open in new window
You also need to drop in your API key into the page:
Open in new window
Since the key is exposed,in the API console you will need to set some CORS restrictions (IP, referrer URL, etc.)