close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Pro Maps API V3 Problem

Thread began 7/14/2012 8:57 am by Mike Perry | Last modified 7/17/2012 10:11 am by Mike Perry | 2536 views | 11 replies |

Mike Perry

Pro Maps API V3 Problem

I'm trying to update a Pro Maps to V3 of the API. Using Design Extender 1.09.

When I include directions, the location pin and info window for the map does not display. Firebug reports that map1 is undefined. When I leave the directions box unchecked, the pin and info window display properly,

Directions don't work when I include directions -- the starting address data is passed to the posted page in the URL, and Firebug reports that map1 is undefined.

Files (page & google_javascript folder) are attached.

cincinati_apiv3.php is the page where directions is left unchecked, and cincinati_apiv3_2.php is the page where directions is checked.

Thanks. . .

Mike

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

Dave BuchholzBeta Tester

I have seen this when updating an existing google map, I just went in and hand edited the files to change the reference

Sign in to reply to this post

Mike Perry

Originally Said By: Dave Buchholz
  I have seen this when updating an existing google map, I just went in and hand edited the files to change the reference  


Hi Dave:

First -- what code did you change, and what did you change it to?

Second -- what if I'm creating a new map, starting clean with no existing references to Google Maps or WA code??

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see any old Google Map code on your page, but the links you provide don't seam to work.

Can you give correct links so i can investigate the problem.

one thing that may be causing the issue is using "directions" as the form name, try using a different name for the form.
<form action="cincinnati_apiv3_2.php" method="get" name="directions">

also try changing the id of the "address" div:
<div id="address">

Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  I dont see any old Google Map code on your page, but the links you provide don't seam to work.

Can you give correct links so i can investigate the problem.

one thing that may be causing the issue is using "directions" as the form name, try using a different name for the form.
<form action="cincinnati_apiv3_2.php" method="get" name="directions">

also try changing the id of the "address" div:
<div id="address">  


Oops.

cincinnati_apiv3.php and cincinnati_apiv3_2.php

Pretty bad when I misspell my home town. . .

Will try your suggestions and reply back.

ETA: No joy changing the div id or form name. . .

Sign in to reply to this post

Jason ByrnesWebAssist

This is caused by a bug in the map code when using more than one map in your site, i have logged this in our system to be corrected in the next update.

to correct the problem, for now, find the following code in the webassist/google_javascript/wagmp_map_2.php file:

directionsDisplay.setMap(map1);
directionsDisplay.setPanel(document.getElementById("wagmp_directions_1"));



and change it to:

directionsDisplay.setMap(map2);
directionsDisplay.setPanel(document.getElementById("wagmp_directions_2"));




to fix the issue with the markers not showing, find each instance of:

MarkerImage('google_javascript/



and change it to:

MarkerImage('webassist/google_javascript/
Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  This is caused by a bug in the map code when using more than one map in your site, i have logged this in our system to be corrected in the next update.

to correct the problem, for now, find the following code in the webassist/google_javascript/wagmp_map_2.php file:

directionsDisplay.setMap(map1);
directionsDisplay.setPanel(document.getElementById("wagmp_directions_1"));


and change it to:
directionsDisplay.setMap(map2);
directionsDisplay.setPanel(document.getElementById("wagmp_directions_2"));



to fix the issue with the markers not showing, find each instance of:
MarkerImage('google_javascript/


and change it to:
MarkerImage('webassist/google_javascript/
  


Thanks, Jason. . .

What's a rumpas??

Sign in to reply to this post

Jason ByrnesWebAssist

A rumpas is a noisy disturbance, according to dictionary.com:
rumpus

When made king of the Wild Things, Max cries "Let the wild rumpas start!"

Where_the_Wild_Things_Are

Sign in to reply to this post

Mike Perry

Originally Said By: Jason Byrnes
  A rumpas is a noisy disturbance, according to dictionary.com:
rumpus

When made king of the Wild Things, Max cries "Let the wild rumpas start!"

Where_the_Wild_Things_Are  



:)

That's what I thought -- but I didn't want to assume. .

Sign in to reply to this post

Mike Perry

New Issue

The markers now show.

However the map now displays with the default start point (somewhere in Kansas) instead of the default address showing at the center of a more local map, and the directions to the address from that point.

cincinnati_apiv3_2.php

Also cannot edit the map -- I get a "pathtoURL" error, which I presume comes from the change in paths to the markers.

Thanks. . .

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