Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9125599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:50:30+00:00 2026-06-17T06:50:30+00:00

In this Google tutorial; https://developers.google.com/maps/articles/phpsqlajax_v3 in the ‘Loading the XML File’ section it talks

  • 0

In this Google tutorial; https://developers.google.com/maps/articles/phpsqlajax_v3 in the ‘Loading the XML File’ section it talks about a function called “downloadUrl”. It says “url specifies the path to either your XML file or to the PHP script that generates the file, depending if you want the XML to be dynamically updated when your database changes. It’s usually easiest to have this reside in the same directory as the HTML so that you can just refer to it by filename.”
The problem is, if I use put a php url into the function it doesn’t work. If I put a direct link to the xml file it does. For example this call does not put the markers on the map.

downloadUrl(‘SCOTAxml.php?lat=39.4&lng=-94.6&dist=100’, function(data) { …

However this call does work.

downloadUrl(“testxml.xml”, function(data) { …

I used the SCOTAxml.php program to create the xml exactly as its done in the tutorial. I just copied it to testxml.xml afterword in order to test the downloadUrl function.

My question if you haven’t guessed yet is why won’t is this not working correctly according to the way the tutorial says it should?

Thoughts? Things to check? A solution?

Thanks in advance to all the great people who help resolve these simple issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:50:31+00:00Added an answer on June 17, 2026 at 6:50 am

    I downloaded the tutorial and it doesn’t load properly due to the map icons. The link for them is dead. You will need to download your own icons. The icons used in the map can be obtained from Visual Case by clicking and saving.

    var customIcons = {
          restaurant: {
            icon: 'icons/restaurant.png',
            shadow: 'icons/restaurant_shadow.png'
          },
          bar: {
            icon: 'icons/bar.png',
            shadow: 'icons/bar_shadow.png'
          }
        };
    

    As commented check you are generating valid XML from SCOTAxml.php.

    EDIT

    This is the XML file generated from tutorial as shown in browser.

    <markers>
    <marker name="Frankie Johnnie & Luigo Too" address="939 W El Camino Real, Mountain View, CA" lat="37.386337" lng="-122.085823" type="bar"/>
    <marker name="Amici's East Coast Pizzeria" address="790 Castro St, Mountain View, CA" lat="37.387138" lng="-122.083237" type="restaurant"/>
    </markers>
    

    I notice you are passing parameters (lat,lng & distance) which are not required in phpsqlajax_genxml.php. This would indicate to me that you are mixing the tutorial Creating Store Locator with the one you indicated above.

    Map

    EDIT 2

    To output XML content from PHP file the content-type header has to be set. This is so that the browser knows that the output content from PHP file is XML instead of default content-type header (text/html).

    //Set content-type header for XML 
    header("Content-type: text/xml");
    

    EDIT 3
    the icon page on visual-case has been moved here: http://www.lass.it/Web/viewer.aspx?id=4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I went through this excellent tutorial of google https://developers.google.com/maps/articles/phpsqlsearch but i din't understand the
I'm following this tutorial https://developers.google.com/bigquery/articles/dashboard#downloadinstalllibraries Here they say that cd source/ enable-app-engine-project hellodashboard/ which
I have been looking at this tutorial https://developers.google.com/web-toolkit/articles/mvp-architecture What I was wondered is with
I am working through this tutorial https://developers.google.com/cloud-print/docs/android for google cloud print. I am trying
I am learning GWT, so I am following this tutorial from Google GWT https://developers.google.com/web-toolkit/tools/gwtdesigner/tutorials/stockwatcher
I have followed this tutorial on Google https://developers.google.com/google-apps/marketplace/tutorial_php to create a marketplace app for
I have been following the GWT MVP tutorial ( https://developers.google.com/web-toolkit/articles/mvp-architecture-2 ) and while it
I'm going through this tutorial pretty much verbatim: https://developers.google.com/google-apps/marketplace/tutorial_java deploying to my app engine
Going through this tutorial https://developers.google.com/web-toolkit/doc/latest/tutorial/RPC it is mentioned that to set up a call
reading this https://developers.google.com/in-app-payments/docs/tutorial Quoted from the above page: Because you sign the JWT using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.