Solved

Google Maps API Showing Properties Only When Within A Certain Distance

Posted on 2012-04-06
2
130 Views
Last Modified: 2012-04-09
Hello Experts,

I have two practically identical pages:

http://gorgeous-villas.com/results.asp?lat=37.9545028&lng=23.9722204&location=Athens International Airport (ATH), Athens, Greece

AND

http://gorgeous-villas.com/results500.asp?lat=37.9545028&lng=23.9722204&location=Athens International Airport (ATH), Athens, Greece

The first searches for properties within 100km of the target point, and works fine, however the second is set to 500km and doesn't show the markers - can you please help me with this?

Thanks in advance!
0
Comment
Question by:Nico2011
2 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 37818115
In the first link you have 3 markers defined and those 3 are showing up on the map.

In the second link you have over a hundred and none are showing up.

There are errors in the xml syntax on the second link. You have "&" characters, and these will not parse. You can change them to "and" or create CDATA blocks inside the xml for those attribute values.

I don't know if fixing these xml errors is all you need to do, but it's a start.

On either link, I cannot find any logic that filters the markers based on distance. Am I missing something?
0
 

Author Closing Comment

by:Nico2011
ID: 37822961
Thanks so much - yoursolution worked perfectly!  I must have had regions with '&' after a certain distance, therefore creating the error!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Disabled form text field 2 22
Add Context Menu Item 4 43
Angular - "nest" service calls? 18 21
document.getElementById not worj with 2 IDs with the same name 10 15
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now