Skip to content

Instantly share code, notes, and snippets.

@stefangordon
Created June 6, 2016 16:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
'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