Skip to content

Commit

Permalink
Merge pull request #940 from marcjansen/typo-in-prop
Browse files Browse the repository at this point in the history
Typo in prop
  • Loading branch information
marcjansen committed Nov 20, 2018
2 parents 72a9ed1 + 64e98a0 commit c35977e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Button/GeoLocationButton/GeoLocationButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class GeoLocationButton extends React.Component {
* https://www.w3.org/TR/geolocation-API/#position_options_interface
* @type {Object}
*/
trackingoptions: PropTypes.shape({
trackingOptions: PropTypes.shape({
maximumAge: PropTypes.number,
enableHighAccuracy: PropTypes.bool,
timeout: PropTypes.number
Expand All @@ -141,7 +141,7 @@ class GeoLocationButton extends React.Component {
onError: () => undefined,
showMarker: true,
follow: false,
trackingoptions: {
trackingOptions: {
maximumAge: 10000,
enableHighAccuracy: true,
timeout: 600000
Expand Down Expand Up @@ -241,7 +241,7 @@ class GeoLocationButton extends React.Component {
onToggle = (pressed) => {
const {
showMarker,
trackingoptions,
trackingOptions,
map
} = this.props;

Expand All @@ -262,7 +262,7 @@ class GeoLocationButton extends React.Component {
// Geolocation Control
this._geoLocationInteraction = new OlGeolocation({
projection: view.getProjection(),
trackingOptions: trackingoptions
trackingOptions: trackingOptions
});
this._geoLocationInteraction.setTracking(true);

Expand Down
8 changes: 4 additions & 4 deletions src/Map/FloatingMapLogo/FloatingMapLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class FloatingMapLogo extends React.Component {
* Whether the map-logo is absolutely postioned or not
* @type {boolean}
*/
absolutelyPostioned: PropTypes.bool,
absolutelyPositioned: PropTypes.bool,

/**
* The style object
Expand All @@ -61,7 +61,7 @@ class FloatingMapLogo extends React.Component {
*/
static defaultProps = {
imageSrc: 'logo.png',
absolutelyPostioned: false
absolutelyPositioned: false
}

/**
Expand All @@ -71,7 +71,7 @@ class FloatingMapLogo extends React.Component {
const {
imageSrc,
imageHeight,
absolutelyPostioned,
absolutelyPositioned,
className,
style
} = this.props;
Expand All @@ -80,7 +80,7 @@ class FloatingMapLogo extends React.Component {
? `${className} ${this.className}`
: this.className;

if (absolutelyPostioned) {
if (absolutelyPositioned) {
Object.assign(style, {'position': 'absolute'});
}

Expand Down
2 changes: 1 addition & 1 deletion src/Map/FloatingMapLogo/FloatingMapLogo.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('<FloatingMapLogo />', () => {
it('passes position prop', () => {
let props = {
imageSrc: testLogo,
absolutelyPostioned: true,
absolutelyPositioned: true,
style: {
backgroundColor: 'yellow'
}
Expand Down

0 comments on commit c35977e

Please sign in to comment.