Simplify the simple example

This commit is contained in:
Tim Schaub
2015-11-14 13:08:49 -07:00
parent 734712bf9c
commit 48be3ee572
2 changed files with 4 additions and 15 deletions
+4 -8
View File
@@ -1,13 +1,9 @@
--- ---
layout: example.html layout: strapless.html
title: Simple example title: Simple example
shortdesc: Example of a simple map. shortdesc: Example of a simple map.
docs: > docs: >
A simple map with customized Attribution control. A simple map with an OSM source.
tags: "simple, openstreetmap, attribution" tags: "simple, openstreetmap"
--- ---
<div class="row-fluid"> <div id="map" class="map"></div>
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
-7
View File
@@ -1,6 +1,5 @@
goog.require('ol.Map'); goog.require('ol.Map');
goog.require('ol.View'); goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.layer.Tile'); goog.require('ol.layer.Tile');
goog.require('ol.source.OSM'); goog.require('ol.source.OSM');
@@ -11,12 +10,6 @@ var map = new ol.Map({
source: new ol.source.OSM() source: new ol.source.OSM()
}) })
], ],
controls: ol.control.defaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
collapsible: false
})
}),
renderer: common.getRendererFromQueryString(),
target: 'map', target: 'map',
view: new ol.View({ view: new ol.View({
center: [0, 0], center: [0, 0],