map now plays well with bootstrap's resposiveness
This commit is contained in:
parent
55f8e78874
commit
a830d412d8
1 changed files with 1 additions and 1 deletions
2
map.php
2
map.php
|
@ -4,7 +4,7 @@
|
|||
<?php
|
||||
function ShowMap($lat,$lon){
|
||||
echo '<div style="display:none;"><div id="marker" style="width:10px;height:10px;border-radius:50%;background-color:#ff0000;opacity:0.6;"></div></div>';
|
||||
echo '<div id="map" style="width:300px;height:300px;"></div>';
|
||||
echo '<div id="map" style="width:300px;height:300px;overflow:hidden;"></div>';
|
||||
echo '<script>';
|
||||
echo 'var pos = new ol.proj.fromLonLat([' . $lon . ', ' . $lat . ']);';
|
||||
echo 'var map = new ol.Map({target:"map"});';
|
||||
|
|
Reference in a new issue