Solved

Google Maps API Showing Properties Only When Within A Certain Distance

Posted on 2012-04-06
2
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

734 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