How to show multiple areas by location in google maps using php

后端 未结 4 1593
闹比i
闹比i 2021-01-22 07:59

Here is the Initialise function.....

        function initialize() {

Here the variables $Latitude,$Longitude are array values so how can i stor

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-22 08:17

    UPDATE 2017

    Google maps now supports the creation of maps with multiple locations which you can embed via iframe! Source: https://www.create.net/support/218-how-to-pin-point-multiple-locations-on-google-maps.html

    1. Go to https://www.google.com/maps

    2. Make sure you're signed in - you can do so by clicking the Login button in the top-right corner.

    3. In the top left corner, next to the search box, click the menu icon to expand the menu

    4. Click "Your Places", "Maps" and then click "Create Map" to edit your map.

    5. A new window will pop up. Give your map a title and description, then click "Save".

    6. You can now pinpoint locations manually by clicking the marker icon and placing it directly onto the map, or search for locations using the search box at the top of the screen.

    7. If you're adding locations manually, you can name the location and save to add it to the map. If you're searching and adding specific locations, a green marker will appear on the map and you can click the 'Add to map' link.

    8. Repeat steps 6 and 7 for each location you wish to plot.

    Once you have done that save your map again and refresh the page. Then, to get the code to embed your map on to your Create website, please follow these steps:

    1. Make sure you map is public. You can do this by clicking 'Share' beneath the map name.

    2. Under 'Who has access' click 'Change' and make turn it 'On - Public on the web' and save.

    3. Next, click the menu icon and click on the link 'Embed on my site' The code will then pop up in a new window.

    4. To use this, you will need to paste the code into an HTML fragment on your Create account, and then place the HTML fragment on your chosen page.

    Example:

提交回复
热议问题