Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in prop #940

Merged
merged 2 commits into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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