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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Zoom problem

Thread began 12/21/2009 12:36 pm by md262153 | Last modified 12/21/2009 5:17 pm by md262153 | 3083 views | 12 replies |

md262153

Zoom problem

I'm doing my first Google Maps project and I got things working fine except I can't change the default zoom. I *think* I made the script changes right but obviously I'm missing something. Can someone take a look and see what it's not zoomed out about halfway (7)?

www.marinrealestatesearch.com/

THANKS!

Sign in to reply to this post

neilo

Hiya,

According to your wagmp_map_1.js file, you have set the zoom level to 17 (not 7).

Sign in to reply to this post

md262153

Originally Said By: neilo
  Hiya,

According to your wagmp_map_1.js file, you have set the zoom level to 17 (not 7).  




Sorry, I was testing it again. It's back to 7. And it's not working for me in IE7 or FF3.

It's also throwing an error that says: "Line 148. Invalid Arguement" if that has any bearing on the subject.

Sign in to reply to this post

neilo

I'm still seeing 17 as the zoom. Did you re-upload your page and .js file?

Sign in to reply to this post

Eric Mittman

The problem you are experiencing with the zoom may have to do with how you are setting in the js, I notice the set zoom functions in there and I do not believe they are necessary. The zoom is set in the js code with this line:

map.setCenter(point, 13);



So the default would be 13, this is the place where you should adjust the default zoom of the map.

Sign in to reply to this post

md262153

Originally Said By: Eric Mittman
  The problem you are experiencing with the zoom may have to do with how you are setting in the js, I notice the set zoom functions in there and I do not believe they are necessary. The zoom is set in the js code with this line:

map.setCenter(point, 13);


So the default would be 13, this is the place where you should adjust the default zoom of the map.  



The WebAssist document about setting the Zoom Level says nothing about that. It tells you to add the code "map.setZoom(N);" to the document to change the default zoom level.

pro_maps_set_zoom_level_ht.pdf

Sign in to reply to this post

neilo

Hiya md,

I'm not sure how much bearing this has on your particular problem, but I notice that you have entered the coordinates:

latitude: '122.640380859375',
longitude: '37.995080447032976',

You have the lat & long coordinates mixed up, they should be:

latitude: '37.995080447032976',
longitude: '-122.640380859375',

(Also note the minus before the longitude).

This may be confusing google.

Sign in to reply to this post

md262153

Originally Said By: neilo
  Hiya md,

I'm not sure how much bearing this has on your particular problem, but I notice that you have entered the coordinates:

latitude: '122.640380859375',
longitude: '37.995080447032976',

You have the lat & long coordinates mixed up, they should be:

latitude: '37.995080447032976',
longitude: '-122.640380859375',

(Also note the minus before the longitude).

This may be confusing google.  



I'm using ADDRESS (focus "Kentfield"), not lat and long. If they're in there, the script must have inserted them.

I removed them manually but it's still working fine in FF and throwing that error and not default zooming properly in IE.

Sign in to reply to this post

Eric Mittman

The set zoom should be doing as it states and sets the zoom, the function looks to be in the correction location with the correct map object specified. If you are still not getting it to work though then you should try setting the zoom on the set center function. Does this not work for you? Please let us know so we can check into this further if you still having problems with it.

It should not really matter how you implement the zoom. If you change the default values in the file then it should just use this value and would not be necessary to adjust it with the setzoom.

Sign in to reply to this post

md262153

Originally Said By: Eric Mittman
  The set zoom should be doing as it states and sets the zoom, the function looks to be in the correction location with the correct map object specified. If you are still not getting it to work though then you should try setting the zoom on the set center function. Does this not work for you? Please let us know so we can check into this further if you still having problems with it.

It should not really matter how you implement the zoom. If you change the default values in the file then it should just use this value and would not be necessary to adjust it with the setzoom.  



This works in FF and IE (though IE is still showing an error on the page).

Thanks for helping, but why isn't this documented anywhere? Did I miss something? The posted How To telling you How To Change The Default Zoom doesn't mention this at all!

Sign in to reply to this post
loading

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