Keep the examples simple
Please write blog posts, create tutorials, or develop workshops that show off cool ways to develop applications that use OL3. The examples should be kept very simple. This download functionality is neat, but it's really a gratuitous use of non-map related functionality. While it does demonstrate the use of `format.writeFeatures()`, this is buried in too much additional code that is not accessible (buried in resources/common.js) and not really related to mapping things. If we want to have examples that demonstrate how formats can be used to serialize features, a simple textarea would suffice as the target.
This commit is contained in:
@@ -14,10 +14,5 @@ tags: "KML"
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="no-download" class="alert alert-error" style="display: none">
|
||||
The "Export KML" functionality requires a browser that supports the
|
||||
<a href="http://caniuse.com/#feat=download">link download</a> attribute.
|
||||
</div>
|
||||
<a id="export-kml" class="btn" download="map.kml"><i class="icon-download"></i>Export KML</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user