close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

dynamically adding maps

Thread began 1/22/2015 6:24 am by Jamie | Last modified 1/23/2015 11:55 am by Jason Byrnes | 219 views | 3 replies |

Jamie

dynamically adding maps

Hi Jason

Am having a play around with go,ogle maps and have managed to work out how to have one map with multiple pins (http://blandfordbusiness.co.uk/test.php) just got a couple of Q's

1. is there anyway to make the map view dynamically change its perspective to include all pins on first view? If you take a look at the above test map, you will see that you need to zoom out to take in a couple of extra pins...

2. related to #1 but is there anyway to center the map based on the furthest extent pins?

3. how to set the info window to not show without a pin being clicked - I have tried uncommenting //infowindow.open(map2,marker); but its still showing the window. if you take alook at this page to see what I mean:http://bit.ly/1E5mAN8

Cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

1) no, it's not possible to dynamically set the zoom level

2) The last record in the recordset will be the center point. aside from serving an order by to the recordset, that is the only way to controll where the map is centred

3) change isDefault code:


if (isDefault) {
//infowindow.open(map2,marker);
setTimeout("google.maps.event.trigger(wagmp_map_2_obj.markers[" + wagmp_map_2_obj.markers.length + "], 'click')",1000);
//map2.setCenter(point);
}


to:
if (isDefault) {
//infowindow.open(map2,marker);
//setTimeout("google.maps.event.trigger(wagmp_map_2_obj.markers[" + wagmp_map_2_obj.markers.length + "], 'click')",1000);
map2.setCenter(point);
}

Sign in to reply to this post

Jamie

thanks Jason. How would you create a link to open the main google maps website and show the location link for that member?

Sign in to reply to this post

Jason ByrnesWebAssist

the format for sending an address to the google site would be:
https://www.google.com/maps/place/760+West+Genesee+Street+Syracuse+NY+13204


http://gearside.com/easily-link-to-locations-and-directions-using-the-new-google-maps/

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...