Point text on the map marked PHP

1, of course, the first step is to establish Baidu map placed in a container well, this does not explain
<div class = "s_r" style = "float: left; width: 680px; height: 620px; margin-top: 10px" id = "container2 "> </ div>

2, next to the map to add a row of characters, the information label points are listed one by one, to be used for the future and marked on a map connecting, click here, over there marked map the corresponding point on the pop-up message, the style is as follows
<UL>
<U class = "name"> <a href="" target="_blank"id="list0"> label points 1 </a> </ u >
<Li> Introduction. 1 </ Li>

<UCLASS = "name"> <a href="" target="_blank"id="list1"> </a> label point 2 </ U>
<Li> 2 Introduction </ li>
</ ul>
this thing is not to write by hand, it is best to use php to write into the loop array that is what you want to mark the point of all the information ah, such as name, phone, marked the latitude and longitude points, database id number, etc., because back in javascript also used this array php, keeping the same order is very important, do not ask me where they come from this array, ask yourself this. .., my side is written like this, $ areashoplist is ready array, $ key is the order of elements in the array, write in the future to facilitate the resolution connected here.
 

Guess you like

Origin www.cnblogs.com/chenduzizhong/p/10986157.html