mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add osmtogeojson
This commit is contained in:
@@ -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