Solved

Google Maps API Showing Properties Only When Within A Certain Distance

Posted on 2012-04-06
2
129 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

707 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

18 Experts available now in Live!

Get 1:1 Help Now