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

Center Map

Thread began 7/09/2009 8:25 am by drew104744 | Last modified 7/10/2009 11:12 am by Ray Borduin | 1625 views | 4 replies |

drew104744

Center Map

I have been searching the forum to find out how and where to place the code to center the map onload, I have found a few post but they are incomplete. showthread.php?t=952

Where in the page ( wagmp_map_1.php ) do we need to add the code and is this the right code

goole.maps.setCenter(center:38.3176830 -88.9037070, zoom:Number) ;

or does it need to be

map.setCenter(center:38.3176830 -88.9037070, zoom?:Number, type?:GMapType); what is the map type, does the Long and Lat need to be seperated by a comma

Sign in to reply to this post

drew104744

using Lytebox or Thick Frame

I have also tried to use Lytebox and ThickFrame to link information from the info windows and it works onload but then will just go to the page that is to open in the lytebox or thickframe, is there any reason that this would happen.
index.php

This is for a police dept and they are wanting to show all the perv's in the area

I have attached the files, the path to the Google map is modules/sex_offenders

Attached Files
webassist.zip
Sign in to reply to this post

Ray BorduinWebAssist

Just update the line:

map.setCenter(point, 13);

play around with the 13... that is the zoom level. Increase or decrease until you find the level you want.

Sign in to reply to this post

drew104744

setCenter

Thanks for the response on the set center, that gave me a start and this is what I found worked: map.setCenter(new GLatLng(38.3176830, -88.9037070), 11);

Is there any ideas why, I can't get the lyteframe to work off the map, as you can see from the list below the map I can get it to work from a repeat region, but not the map.

index.php

Sign in to reply to this post

Ray BorduinWebAssist

I'm not familiar with lyteframe, but it appears you are using the same syntax for the links so it must have something to do with how lyteframe works.

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...