Moved inline style of map to head.

This commit is contained in:
George Kaklamanos 2016-02-21 11:44:11 +02:00
parent 2bb92abf4b
commit 94d3e491f2

View file

@ -1,11 +1,18 @@
<link rel="stylesheet" href="openlayers/ol.css" />
<script src="openlayers/ol.js"></script>
<style type="text/css">
#mymap{
height:300px;
width:300px;
overflow:hidden;
}
</style>
<?php
function ShowMap($coordsRed,$coordsGreen){
if(count($coordsRed)>0 || count($coordsGreen)>0){
?>
<div id="mymap" style="width:300px;height:300px;overflow:hidden;"></div>
<div id="mymap"></div>
<script>
var pos = new ol.proj.fromLonLat([25.1329,35.3342]);
var features = [];