Solved

Google Maps API Showing Properties Only When Within A Certain Distance

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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…
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…

740 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