close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

address markers are showing up automatically, but only on the live site - not local

Thread began 1/08/2010 2:28 pm by sandy170299 | Last modified 1/11/2010 3:07 pm by Jason Byrnes | 1770 views | 7 replies |

sandy170299

address markers are showing up automatically, but only on the live site - not local

Jimmy previously helped me disable the address markers from showing up automatically when a map loads, and it is working fine locally. However, when I uploaded my pages to the server, a default address marker is showing up again. The pages are identical - I just uploaded them to the server. What could be causing this and how can I get rid of a default address marker? I don't want to give one address more emphasis than another.

I'm still working on the site, but you'll get the idea: resorts.php?state=MN

Sign in to reply to this post

Jason ByrnesWebAssist

there are 2 places in the code where you have the following:
if('address_0_0' == 'address_0_0')
marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);



change that to:
//if('address_0_0' == 'address_0_0')
marker_0_0.openInfoWindowHtml(address_0_0.infowindowtext);

Sign in to reply to this post

sandy170299

Hey, Jason...

I don't have the code you are specifying in my file. In fact, I don't even have the marker_0_0 string. I have the following:

if(!fromAddress.enabled || 'address_0_<?php echo $getMap_id; ?>' != 'address_0_0') {
if('address_0_<?php echo $getMap_id; ?>' == 'address_0_0')
map.setCenter(point, 13);
map.addOverlay(marker_0_<?php echo $getMap_id; ?>);
map.setZoom(6);

So, what would I comment out? Yes, I have customized this to the point that I can't run through the wizard anymore because it will delete things that I've done. I can attach my file, if that would help...???

Thanks :)

Sign in to reply to this post

Jason ByrnesWebAssist

Yes please attach the map php file.

Sign in to reply to this post

sandy170299

Attached is a text file of the map code. Can you please tell me exactly what you are changing because I have three separate map files that I will have to change it in.

Thanks

Attached Files
map.txt
Sign in to reply to this post

Jason ByrnesWebAssist

There are 2 places where you have the following code:

if('address_0_<?php echo $getMap_id; ?>' == 'address_0_0')
marker_0_<?php echo $getMap_id; ?>.openInfoWindowHtml(address_0_<?php echo $getMap_id; ?>.infowindowtext);








change that to:

//if('address_0_<?php echo $getMap_id; ?>' == 'address_0_0')
//marker_0_<?php echo $getMap_id; ?>.openInfoWindowHtml(address_0_<?php echo $getMap_id; ?>.infowindowtext);



this will comment those lines out.

Sign in to reply to this post

sandy170299

Thanks, Jason. Worked perfectly :)

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

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