Solved

Google Maps API Showing Properties Only When Within A Certain Distance

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…
Suggested Courses

617 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