move the style.mobile.css file from examples to theme/default
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
|
||||
<script src="../lib/OpenLayers.js?mobile"></script>
|
||||
<script src="mobile-drawing.js"></script>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css">
|
||||
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
|
||||
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="style.mobile-jq.css" type="text/css">
|
||||
<script src="../lib/OpenLayers.js?mobile"></script>
|
||||
<script src="mobile-base.js"></script>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
|
||||
<script src="../lib/OpenLayers.js?mobile"></script>
|
||||
<script src="mobile-layers.js"></script>
|
||||
<style>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>Mobile Navigation Example</title>
|
||||
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css" />
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
<script type="text/javascript" src="../lib/OpenLayers.js?mobile"></script>
|
||||
<script type="text/javascript" src="mobile-navigation.js"></script>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>OpenLayers with Sencha Touch</title>
|
||||
<script src="../lib/OpenLayers.js?mobile"></script>
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="http://cdn.sencha.io/touch/1.1.0/resources/css/sencha-touch.css">
|
||||
<script src="http://cdn.sencha.io/touch/1.1.0/sencha-touch.js"></script>
|
||||
<script src="mobile-sencha.js"></script>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<link rel="stylesheet" href="style.mobile.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/style.mobile.css" type="text/css">
|
||||
<script src="../lib/OpenLayers.js?mobile"></script>
|
||||
<script src="mobile.js"></script>
|
||||
<style>
|
||||
|
||||
@@ -25,6 +25,16 @@ Corresponding issues/pull requests:
|
||||
* https://github.com/openlayers/openlayers/pull/254
|
||||
* https://github.com/openlayers/openlayers/pull/261
|
||||
|
||||
## style.mobile.css
|
||||
|
||||
The theme/default directory now includes a mobile-specific CSS file, namely
|
||||
style.mobile.css. The OpenLayers mobile examples use this file. To use it
|
||||
in your mobile pages use tags like this:
|
||||
|
||||
<link rel="stylesheet" href="openlayers/theme/default/style.mobile.css" type="text/css">
|
||||
|
||||
(This file used to be in the examples/ directory).
|
||||
|
||||
## Sensible projection defaults
|
||||
|
||||
The geographic and web mercator projections define default values for the maxExtent, and units. This simplifies the map and layer configuration.
|
||||
|
||||
Reference in New Issue
Block a user