Created
June 6, 2016 16:27
-
-
Save stefangordon/ed52b415bdbcf1824acb988fbb94601a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React from 'react'; | |
import { render } from 'react-dom'; | |
import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; | |
import BingTileLayer from './BingTileLayer.js'; | |
class MapExampleComponent extends React.Component { | |
render() { | |
var position = [41.9792489190354, -71.2239789962769]; | |
return ( | |
<Map className='aerial-component' center={position} zoom={13}> | |
<BingTileLayer bingKey='<bingmapskey>' type='aerial' /> | |
</Map> | |
); | |
} | |
} | |
MapExampleComponent.displayName = 'MapExampleComponent'; | |
export default MapExampleComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment