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