Add multiple markers with info windows to Google map dynamically from database using PHP and MySQL.

Опубликовано: 05 Май 2023
на канале: Dinanath Singh
406
5

In this tutorial video, we will show you how to add multiple markers with info windows to Google map dynamically from database using PHP and MySQL. Add makers on google map. Add multiple markers to google maps. Add multiple markers to google maps javascript. How to add multiple markers on google maps javascript dynamically. Add google map to website with multiple markers

Social site links:

facebook :   / dinanathsingh  
youtube :    / dinanath129  
Google plus: https://plus.google.com/u/0/111551527...
twitter :   / dinanath33  
linkedin :   / dinanath-singh-62145237  

CREATE TABLE IF NOT EXISTS `locations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`latitude` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`longitude` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

INSERT INTO `locations` (`id`, `latitude`, `longitude`, `name`, `info`) VALUES
(1, '19.0760', '72.8777', 'Mumbai', 'India financial capital home to Bollywood bustling streets.'),
(2, '28.7041', '77.1025', 'Delhi', 'India capital city rich history diverse culture political hub.'),
(3, '12.9716', '77.5946', 'Bengaluru', 'India tech hub pleasant weather diverse cuisine vibrant culture.'),
(4, '22.5726', '88.3639', 'Kolkata', 'Cultural capital of India historic landmarks vibrant street food.'),
(5, '13.0827', '80.2707', 'Chennai', 'South India coastal city rich history famous temples delicious food.'),
(6, '17.3850', ' 78.4867', 'Hyderabad', 'Nizam city famous biryani historic landmarks emerging tech hub.');