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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Set Zoom Level?

Thread began 5/29/2009 2:04 pm by craig380901 | Last modified 8/19/2009 6:37 pm by Ray Borduin | 6579 views | 15 replies |

craig380901

Set Zoom Level?

I am new to google maps but can hack my way around a bit.

I am trying to get the map to zoom out to a specific point where I can see a bunch of property locations within a 15 mile radius of NYC. I have tried setZoom(x) in the wagmp_map_1() function as map.setZoom(10); but the map displays nothing. Is this correct location or do I need to setCenter first?

Thanks neat product so far.

Sign in to reply to this post

Ray BorduinWebAssist

Do you have a sample url I can look at. I can take a look and see what I can see.

Sign in to reply to this post

craig380901

Thanks for the quick response.

bronx-map.html

Although I have taken the code out at this point.

Update: helps to read the docs:) - although I still don't seem to be zooming out...

Sign in to reply to this post

Ray BorduinWebAssist

map.setZoom();

should be right... where are you adding it?

try adding it right after: marker_5.openInfoWindowHtml(address_5.infowindowtext);

Sign in to reply to this post

craig380901

I read the docs and it says to add setZoom after each instance of map.addOverlay? Sort of had it working. But can I just add it once?

Thanks!

Sign in to reply to this post

craig380901

Back again this time I am using the recordset method of displaying address, no problem there. Just wondering how I can adjust the zoom level to see a wider view of these locations, and I assume I may need to adjust the center location as well.

Here is a new link

map.asp

Thanks!

Sign in to reply to this post

Ray BorduinWebAssist

It seems like you could add the .setZoom call after the last instance of .addOverlay and it should work.

Sign in to reply to this post

craig380901

I get mixed results... Seems whatever value I put in I either get a view from outer space or no change at all... odd any ideas? Another thing is the map will not load at all in IE6 even before the change.


Thanks!

Sign in to reply to this post

zuffster370186

Having the same problem with SetZoom

I have applied all code changes that are on this thread and the online documentation. The code that my page now displays has the setZoom() code after the map.addOverlay lines.

IE 8 is showing this 'Error on page':

Line: 1599
Char 1
Error: 'wagmp_map_3_obj.getPointByAddress(...)marker' is null or not an object

Safari also has a problem with the zoom just like IE. On Firefox, everything works great. I am assuming this is a browser conflict with the code.

In IE and Safari, with the zoom set to 14, I am still getting the view from Space.

fields.php

Sign in to reply to this post

Ray BorduinWebAssist

Please download and install the latest version of promaps. I believe you are experiencing some issues we have recently corrected that may account for at least some of the problems you are having.

Let me know once you have updated with the latest version and I can look into it further with you if necessary.

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