close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Pushpins in wrong states, zooming on wrong states

Thread began 8/10/2011 5:50 pm by officemanager397279 | Last modified 8/12/2011 7:42 am by Jason Byrnes | 1933 views | 4 replies |

officemanager397279

Pushpins in wrong states, zooming on wrong states

We have a page that has a dynamically loaded record set limited by each state. We have 2 issues though I think they are related:

1) Chapter_List.php?St_code=CO should be focused on Colorado (which it is) but should only have pushpins in CO, not CA. The zipcode in the database for the chapter is a CO zip but it being put in CA for some reason.

2) Chapter_List.php?St_code=WI has all the pushpins placed properly, but is zoomed on Texas instead of WI.

This had worked for over a year for us with adding a few new pieces of data each month. Not sure why is has stopped recently.

Cindy

Sign in to reply to this post

officemanager397279

Found a way to make push pins appear in correct spot

It seems we either need lattitude and longitude or city and zip, it can't just be zip code in the data set.

I am noticing though in Firefox that California zooms in and out for a few moments before it settles down. Any way to solve this?

Sign in to reply to this post

Jason ByrnesWebAssist

when it centers on California, it is because it failed to locate one of the addresses


the following code sets the failure default:
if (wagmp_map_3_obj.addressFailed) {
map.setCenter(new GLatLng(30, -98), 3);
}



you could change that to:
if (wagmp_map_3_obj.addressFailed) {
map.setCenter(new GLatLng(39.550051, -105.782067), 3);
}


to have Colorado be the new failure default.

Sign in to reply to this post

officemanager397279

Ok, understand on CA

Unfortunately, I can't really set it to any state as the code is dynamically used for each state depending on the variable passed at calling of the page. But I know understand why is shows CA. I might set default to be our main address in IL then.

The Texas/Wisconsin issue seems to be that 54701 and 54703 are not being recognized as Eau Claire, WI zipcodes, though 54742 seems to work. Not sure if the other zip codes are similar to something in Texas.

Thanks,

Cindy

Sign in to reply to this post

Jason ByrnesWebAssist

not sure why it would return Texas for a Wisconsin zip code either, but the more information you give the Google geocoder (zip + state for example,) the more accurate the results will be.

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