Create a table in your database to contain the information for your map markers. Use the commands specific to your database system. For example, in SQL, the command to create a table is "CREATE TABLE markers ("
Define the identifying fields for the markers following the syntax of your database system. In SQL, provide the name of the field (such as "id" or "name") followed by the type of value and whether the field can be blank. For example, "CREATE TABLE markers ('id' INT NOT NULL AUTO_INCREMENT PRIMARY KEY, 'name' VARCHAR(80) NOT NULL, 'address' VARCHAR(80) NOT NULL" creates a table the fields "id," "name" and "address."
Add fields for latitude and longitude. Map applications use latitude and longitude to identify addresses. Define the field to accept float values (numbers with decimal points) for a total of 10 digits, with up to six digits after the decimal. For example, in SQL add the fields as " 'lat' FLOAT(10,6) NOT NULL, 'lng' FLOAT(10,6) NOT NULL" in your table.
Follow the application programming interface (API) instructions for how to generate a map from the application using your database. For example, Google Map's API recommends using PHP scripting to generate an XML file from your database.