[Pro] Google Maps with multiple Markers

Hi folks,

it occurred on my small german board a request on hoe to add more than one marker to a google map.

As far as I read on board here, the simple answer is:

“Not without any further js hack! (or js add)”

Is this stat true and if, what would be the way going down the road?

Thanks for any suggestion.

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think this depends on what you mean by “a Google Map.” There are at least two ways to show a map on a web page. One is easy, the other requires a LOT of Javascript writing.

Easy: Get a Google account; make a Google Map; put multiple markers on it. Click the “Link” button and copy and paste the HTML code in a div in your Freeway document.

This will give you a simple Google map on your web page, but there’s no way to customise the presentation of the map, or its functionality.

The other way: Use the Google Maps APIs to create a custom map presentation, such as Roman Holiday Map . This is really involved and time consuming. You have to write custom Javascript and embed the JS in your Freeway document. When I was making my custom Google maps, Freeway’s methods of embedding the Javascript were really clunky and not all all user friendly. Perhaps that situation has improved?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Have a look at this - an online resource to allow you to create the necessary JS for multimarker google maps courtesy of Richard Stephenson http://www.donkeymagic.co.uk

http://mapmaker.donkeymagic.co.uk/index.php

Create the markers by clicking on the map adding the Marker name and any content for a Pop-up. Click Get Javascript to get the necessary code and then it is straightforward to get that into your FW doc.

The JS and Style stuff goes in Page>HTML Markup. Then create a Div on your page called map and you are good to go.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hahh - David, so cooooool as ever. That’s looking so promising and will do the game for sure. Thanks Bucky - maybe I wasn’t clear enough (and open spoken - I’ve never had a request on adding more than one location to a google map) so I would have had to ask:

How to add all restaurants in chinatown to a google map each as a separate marker … ?

Cheers

Thomas


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dear Thomas,

Well, if all you want is a simple map, with no added functionality on the page outside the map itself, use method one I outlined above.

That is…
If you don’t have one, create a Google account for yourself.

  1. Log in to Google with that account.

  2. In the Google menu bar, click “Maps.”

  3. Click the button for “My Places.”

  4. Click the button for “CREATE MAP.”

  5. Begin editing the new map: give it a Title, description, etc. Make it Unlisted. Use the buttons on the actual map to drag in markers. Edit their Info Boxes on the map.

  6. I have no idea how you would identify, confirm and ensure that you had locations for “all the [something] in [somewhere].” You can, while Editing your map, use Google’s map search function and manually put your own markers over whatever you find. That’s all I know about that.

  7. When you’ve finished Editing and Saving your map, use the Link button to get the HTML you’ll embed in your Freeway document. This will place what’s essentially a copy of your Google map on the web page.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi,
one question: When you embed the Google map, don’t you still need the API key from Google? Then where would you insert that in the code?

thanks,
Beau


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

ok


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dear Beau,

Did you answer your own question?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi, No, not yet. I just made a booboo with the second entry. Still wondering about the API key (whether its needed or not)

thanks,
Beau


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Multiple markers can only currently be achieved by manually adding a Google Map to the page. In my tests, I haven’t needed the API key but others have. Try it without first, upload and check the map works. If it doesn’t, follow the steps on our KnowledgeBase article to get one:

Joe

On 20 Sep 2012, at 00:21, “Beau Griffith” email@hidden wrote:

Hi, No, not yet. I just made a booboo with the second entry. Still wondering about the API key (whether its needed or not)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options