close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Locations are not accurrate

Thread began 11/24/2009 4:24 pm by info380630 | Last modified 11/25/2009 12:02 pm by Ray Borduin | 1462 views | 6 replies |

info380630

Locations are not accurrate

Hi. Purchased this yesterday and am not having a lot of luck with it. It all integrates fine etc... But my problem is with location accuracy.

If I go to Google Maps and enter a UK postcode, Google Maps takes me to the exact location I need. However, if I do the same with the Pro Maps for Google plug-in, it takes me to a location miles away.

Why?

Can anyone please suggest a way of getting a more accurate result?

This is the map I trying to resolve... tariff.html

Thanks, Dave

Sign in to reply to this post

neilo

These Google Maps seem to have trouble with British post codes - they don't always like there to be a space in the middle.

It also seems to have its own idea about what the 'City' and 'State' should be. Sometimes you have to experiment with nearest (recognisable-by-google) large town or county.

You seem to have something working with coordinates.

Sign in to reply to this post

Jason ByrnesWebAssist

The geocoder used by the Google Map API is not the same one used by maps.google.com and can sometimes show different points.

The most exact way to show a point on the map is to use coordinates.

You can find coordinates for address by going to maps.google.com and searching for your address. Then add the following in the address bar:
javascript:void(prompt('',gApplication.getMap().getCenter()));


this will bring up a javasscript alert containing the latitude and longitude for the address, you can use these in pro Maps

Sign in to reply to this post

info380630

Hmmm

Yeah I don't mind having to use co-ordinates, but this doesn't look fantastic when my clients address isn't showing in the pop-up balloon. Is there anyway I can use co-ordinates but show the address? Or even turn the pop-up balloon off and just have the location marker?

Would help if this 'quirk' was made a bit clearer to potential buyers before they purchase something that doesn't really 'do what it says on the tin'!!

ALSO - I added a new API key for this website, but there's still a pop-up warning window when I navigate to the page with the map on... Why is this??

tariff.html

Sign in to reply to this post

neilo

Hiya Dave,

Try this:

Enter the coordinates in the googleMaps as you have already done. (54.83164419215485 -4.216175079345703)

Open file googleJavascript/wagmp_map_x.php (x = whatever number your map is)

Find the line (somewhere around line 150-152):

infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'", "\'", "<strong>Coordinates:</strong><br />(54.83164419215485, -4.216175079345703)"); ?></span>',


Change it to:

infowindowtext: '<span style="font: 12px Verdana, Arial, Helvetica, sans-serif; color: black;">Address line 1<br />Address Line 2<br />Address Line Etc<br />Your Postcode</span>',


That should locate using the coordinates, but show the address you want it display.

Looks like this

Sign in to reply to this post

neilo

As regards the API key, did you re-upload your page to your remote site with the new key?

Otherwise, sign up for a new key (enter the url of the site it's going on, and click 'generate').

Sign in to reply to this post

Ray BorduinWebAssist

You still seem to have two sets of map code on the page... I see:

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-rtLQHPRNrlmLPDivEApSRSgzrqBtI62pKisAo2D57_sV01LOhR21G_4e1K-loGwT3eW7_mTKYd1CQ">/*wagmp*/</script>
<script type="text/javascript" src="google_javascript/wagmp_map_2.js">/*wagmp*/</script>

<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA-rtLQHPRNrlmLPDivEApSRRy1bzJLjlIWZ_W2QLXEtbB-K5XrBR0jkR0NlNA-nojx0YYhAXiEA775Q">/*wagmp*/</script>


most likely one of them should be removed because it is not used and has an incorrect api key... that will fix the api key issue.

Are you getting your data points from a recordset? If not you can simply type new text for the info window that has the full address even though you use coordinates to display the location.

If you are using a recordset, then you could add a field to the table to contain the info window text and manually replace it.

Also you could turn off the info window by removing the line of code that opens it... if you comment out the lines of code that include: .openInfoWindowHtml

that would do the trick to keep them from opening. You can also just update the info window text direclty in the code on the line that begins with:

infowindowtext:

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