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 7897363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:08:53+00:00 2026-06-03T08:08:53+00:00

I have a database with about 10 tables and they are all interconnected in

  • 0

I have a database with about 10 tables and they are all interconnected in some way(foreign keys, assosiative tables).

I want to use all that data to plot it on my instance of Google Map as markers with infoboxes and be able to filter the map.

Judging from the Google Maps Articles you have to use XML with the data from the database to plot the markers and everything else.

But what would be the right way to generate that XML file? Have a huge SQL statement to generate one XML file with entire data from all tables upon the load of the web-page and the map or is there a more correct approach for this?

  • 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-03T08:08:54+00:00Added an answer on June 3, 2026 at 8:08 am

    You in no way have to use XML to place markers on an instance of Google Maps. You could, but you don’t have to if it seems difficult. I work a lot with the Google Maps V3 API and I would recommend you export your data to JSON and embed it in your document using PHP or make it available for JavaScript to load using Ajax.

    Creating interactive Markers from the data is REALLY easy. You just need to iterate over your data, create a Marker object for each point you want on the map, supply some HTML you want displayed in the info window and show that info window on the Marker’s click event.

    Instead of walking you through with teaspoon accuracy I’ll refer you to the Google Maps API v3 beginner tutorial which among other things includes examples of how to create Markers and display them on the map.

    Fun fact, you can control which icon is displayed for each marker (you can supply an URL to any image you want), as well as make them bounce. To summarize, you have way more control using JavaScript than if you went with XML.

    Regarding performance, I would heed cillosis’ advice and cache your MySQL data in which ever format you end up choosing. If you were to go with JSON you could cache the result of that as well. You can simply save the output in a file called something like “mysql-export-1335797013.json”. That number is a Unix timestamp with which you can extrapolate when the data needs to be refreshed.

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

Sidebar

Related Questions

I have database of about 5 tables. I am going to need to get
I have a database Student which contains about 20 tables. one of the tables
I have created a MySQL database using MySQL Workbench. It has about 20 tables.
I have an Android Service that accesses the database about once per minute. Is
We have an InnoDB database that is about 70 GB and we expect it
I have a database in which all of the tables have been generated by
We have a database that contains information about time booked to projects. We have
I have about 6 tables in my MySQL database, like mysql> describe Quiz; +--------------+-------------+------+-----+---------+----------------+
I have two tables in an MS Access 2010 database: TBLIndividuals and TblIndividualsUpdates. They
I have about 35 queries in a large MS Access (2007) database that I

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.