Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $res=mysql_query("SELECT * FROM `Interiors`");
- while($row=mysql_fetch_assoc($res))
- {
- $interior=array();
- $interior["icon"]=$row['mapicon'];
- $interior["name"]="ikona";
- $interior["pos"]["x"]=$row['x0'];
- $interior["pos"]["y"]=$row['y0'];
- $interiors++;
- echo "<script>var homeMarker = new google.maps.Marker({
- position: SanMap.getLatLngFromPos({$row['x0']}, {$row['y0']}),
- map: sm.map,
- icon: 'icons/Icon_31.gif'
- });</script>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement