Merge branch 'master' of github.com:openlayers/openlayers into transform
Conflicts: theme/default/style.css
This commit is contained in:
47
examples/encoded-polyline.html
Normal file
47
examples/encoded-polyline.html
Normal file
File diff suppressed because one or more lines are too long
@@ -42,6 +42,7 @@ var init = function (onSelectFeatureFunction) {
|
||||
theme: null,
|
||||
projection: sm,
|
||||
numZoomLevels: 18,
|
||||
tileManager: new OpenLayers.TileManager(),
|
||||
controls: [
|
||||
new OpenLayers.Control.Attribution(),
|
||||
new OpenLayers.Control.TouchNavigation({
|
||||
|
||||
@@ -99,6 +99,7 @@ var map;
|
||||
maxExtent: [-20037508.34, -20037508.34, 20037508.34, 20037508.34],
|
||||
maxResolution: 156543.0339,
|
||||
numZoomLevels: 20,
|
||||
tileManager: new OpenLayers.TileManager(),
|
||||
controls: [
|
||||
new OpenLayers.Control.Navigation({
|
||||
mouseWheelOptions: {
|
||||
|
||||
@@ -87,8 +87,9 @@
|
||||
gml3: new OpenLayers.Format.GML.v3(gmlOptionsIn),
|
||||
kml: new OpenLayers.Format.KML(kmlOptionsIn),
|
||||
atom: new OpenLayers.Format.Atom(in_options),
|
||||
gpx: new OpenLayers.Format.GPX(in_options)
|
||||
},
|
||||
gpx: new OpenLayers.Format.GPX(in_options),
|
||||
encoded_polyline: new OpenLayers.Format.EncodedPolyline(in_options)
|
||||
},
|
||||
'out': {
|
||||
wkt: new OpenLayers.Format.WKT(out_options),
|
||||
geojson: new OpenLayers.Format.GeoJSON(out_options),
|
||||
@@ -97,8 +98,9 @@
|
||||
gml3: new OpenLayers.Format.GML.v3(gmlOptionsOut),
|
||||
kml: new OpenLayers.Format.KML(out_options),
|
||||
atom: new OpenLayers.Format.Atom(out_options),
|
||||
gpx: new OpenLayers.Format.GPX(out_options)
|
||||
}
|
||||
gpx: new OpenLayers.Format.GPX(out_options),
|
||||
encoded_polyline: new OpenLayers.Format.EncodedPolyline(out_options)
|
||||
}
|
||||
};
|
||||
}
|
||||
function init(){
|
||||
@@ -202,6 +204,7 @@
|
||||
<option value="gml3">GML (v3)</option>
|
||||
<option value="wkt">Well-Known Text (WKT)</option>
|
||||
<option value="gpx">GPX</option>
|
||||
<option value="encoded_polyline">Encoded Polyline</option>
|
||||
</select>
|
||||
|
||||
<label for="prettyPrint">Pretty print</label>
|
||||
|
||||
Reference in New Issue
Block a user