mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Add osmtogeojson
This commit is contained in:
1 parent
939bf16689
commit
811fc834c7
1 file changed
+3
-1
@@ -1,9 +1,11 @@
|
||||
/// <reference path="osmtogeojson.d.ts" />
|
||||
/// <reference path="../xmldom/xmldom.d.ts" />
|
||||
|
||||
import osmtogeojson from 'osmtogeojson';
|
||||
import {OsmJSON, GeoJSON} from 'osmtogeojson';
|
||||
import * as xmldom from 'xmldom';
|
||||
|
||||
let xml: Document = (new DOMParser()).parseFromString("<osm><node id='1' lat='1.234' lon='4.321' /></osm>", 'text/xml');
|
||||
let xml: Document = (new xmldom.DOMParser()).parseFromString("<osm><node id='1' lat='1.234' lon='4.321' /></osm>", 'text/xml');
|
||||
let geojson: GeoJSON.FeatureCollection = {
|
||||
type: "FeatureCollection",
|
||||
features: [
|
||||
|
||||
Reference in new issue
Block a user