Moved inline style of map to head.
This commit is contained in:
parent
2bb92abf4b
commit
94d3e491f2
1 changed files with 8 additions and 1 deletions
|
@ -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 = [];
|
||||
|
|
Reference in a new issue