Added the marker and the map div's.

This commit is contained in:
George Kaklamanos 2015-07-17 19:57:44 +03:00
parent 3777777785
commit 18d0b81e79

View file

@ -3,6 +3,8 @@
<?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 '<script>';
echo 'var pos = new ol.proj.fromLonLat([' . $lon . ', ' . $lat . ']);';
echo 'var map = new ol.Map({target:"map"});';