close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Pro Maps for Google only returns 10 out of 23 from recordset

Thread began 10/23/2013 2:22 pm by Rune Brynestad | Last modified 12/30/2014 5:22 pm by Ray Borduin | 1848 views | 31 replies |

Rune Brynestad

Pro Maps for Google only returns 10 out of 23 from recordset

Trying to get multiple markers on a Google map via a database loop, but it returns only 10 out of 23.

I have tryed the following.

All addresses are checked to be valid google addresses.
Try to change the order of the recordset. It still returns only 10 out of 23, but not the same 10.
Deleted the _promaps_geocache.xml file to have it recreated.
Edited the last line in the searchCache function in the wagmp_map_1.php file from return ''; to return coordinates;
Cleaning the browsers cache a few times

Live URL you can look at:
http://www.jaguarenergydrink.no/her_finner_du_oss.php
Most of the map markers are located in Bergen, but there should be one in Oslo

If you need to troubleshoot directly, see private message.

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

i updated the searchCache function in the webassist/google_javascript/wagmp_map_1.php file from:



function searchCache(searchStr, zip) {
var xmlDoc = null;
var coordinates = '';
xmlDoc = getHTTPObject();
if(xmlDoc) {
xmlDoc.onreadystatechange = function() {
if(xmlDoc.readyState == 4) {
var x = xmlDoc.responseXML.getElementsByTagName("geocode_entry");
var geocode, id;
searchStr = searchStr.replace(/,/g, ''); //remove commas
for (i=0; i < x.length; i++) {
id = x[i].getAttribute("ID");
if (id == searchStr) {
coordinates = x[i].getElementsByTagName("geocode")[0].childNodes[0].nodeValue;
return coordinates;
}
}
}
}
xmlDoc.open("GET", "webassist/_promaps_cache/_promaps_geocache.xml", false);
xmlDoc.send(null);
} else {
return '';
}
return coordinates;
}



to:

function searchCache(searchStr, zip) {
var xmlDoc = null;
var coordinates = '';
xmlDoc = getHTTPObject();
if(xmlDoc) {
xmlDoc.onreadystatechange = function() {
if(xmlDoc.readyState == 4) {
var x = xmlDoc.responseXML.getElementsByTagName("geocode_entry");
var geocode, id;
searchStr = searchStr.replace(/,/g, ''); //remove commas
for (i=0; i < x.length; i++) {
id = x[i].getAttribute("ID");
if (id == searchStr) {
coordinates = x[i].getElementsByTagName("geocode")[0].childNodes[0].nodeValue;
return coordinates;
}
}
}
}
xmlDoc.open("GET", "webassist/_promaps_cache/_promaps_geocache.xml", false);
xmlDoc.send(null);
} else {
return coordinates;
}
return coordinates;
}



which corrected the problem.

Sign in to reply to this post

Rune Brynestad

Sorry Jason but I still see only the same 10. I have deleted the browser cache. See attached picture

Regards
Rune

Sign in to reply to this post

Rune Brynestad

The problem is not solved

Were you able to find out why the updated the searchCache function did not work?

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

Rune Brynestad

I Can't see the PM

Where is the PM ?

Sign in to reply to this post

Jason ByrnesWebAssist

If you are logged into your account, you will be able to see the Private Message section.

Sign in to reply to this post

Rune Brynestad

I am logged into my account, but I'm not able to see the Private Message section. (See attached picture).
However, I can see that the problem is solved, but I would like to see what you did to solve it.

Regards
Rune

Sign in to reply to this post

Jason ByrnesWebAssist

I'll have ray look into that, the message was:

This was an issue with the foreign language characters and sending them to the Google Geocoder.

Ray updated the promaps_geocache_php.php, and wagmp_map_1.php fie to correct the problem.

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