Skip to content

Commit

Permalink
fixing other providers example; removing custom example for now, as i…
Browse files Browse the repository at this point in the history
…t's broken.
  • Loading branch information
yourcelf committed Apr 16, 2012
1 parent 59fb307 commit ab654b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
19 changes: 0 additions & 19 deletions docs/_static/examples/other_providers.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,6 @@ <h1>Other Map Providers</h1>
<textarea id='my_textarea'></textarea>
<script type='text/javascript'>//<![CDATA[
// Adding a custom layer type
olwidget.registerCustomBaseLayers(
{
'opengeo_osm': // to use this, your olwidget layers would include ['custom.opengeo_osm']
{"class": "WMS", // The OpenLayers.Layer subclass to use.
"args": [ // These are passed as arguments to the constructor.
"OpenStreetMap (OpenGeo)",
"http://maps.opengeo.org/geowebcache/service/wms",
{"layers": "openstreetmap",
"format": "image/png",
"bgcolor": "#A1BDC4",
},
{"wrapDateLine": true
},
],
}
})

var map = new olwidget.EditableMap('my_textarea', {
geometry: 'polygon',
layers: [
Expand All @@ -67,8 +50,6 @@ <h1>Other Map Providers</h1>
'osm.mapnik',
'wms.map',
'wms.nasa',
// Our custom layer type
'custom.opengeo_osm',
]
});

Expand Down
1 change: 1 addition & 0 deletions js/olwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ olwidget.Map = OpenLayers.Class(OpenLayers.Map, {
var map_service = olwidget[parts[0]];
var map_type = parts[1];

console.log(map_type);
layers.push(map_service.map(map_type));

// workaround for problems with Microsoft layers and vector layer
Expand Down

0 comments on commit ab654b9

Please sign in to comment.