Skip to content

Commit

Permalink
fix: geocoder marker display in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriSolid authored Feb 11, 2021
1 parent ad0245e commit c4b6f28
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Not released
- Add cypress e2e tests in CI [#194](https://github.com/CartoDB/carto-react-template/pull/194)
- Fix layer hygen unable to identify proper sources [#198](https://github.com/CartoDB/carto-react-template/pull/198)
- Fix cross browser geocoder marker display [#199](https://github.com/CartoDB/carto-react-template/pull/199)

## 1.0.0-beta12 (2021-02-08)
- Refactor on basic JSX & JS stuff [#170](https://github.com/CartoDB/carto-react-template/pull/170)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useSelector } from 'react-redux';
import { IconLayer } from '@deck.gl/layers';
import geocoderMarker from 'assets/markers/geocoder-marker.svg';
import { svgToDataURL } from 'utils/svgToDataUrl';

export const GEOCODER_LAYER_ID = 'geocoderLayer';

Expand All @@ -15,7 +14,7 @@ function GeocoderLayer() {
return new IconLayer({
id: GEOCODER_LAYER_ID,
getIcon: () => ({
url: svgToDataURL(geocoderMarker),
url: geocoderMarker,
width: 56,
height: 65,
anchorY: 65,
Expand Down
3 changes: 0 additions & 3 deletions template-sample-app/template/src/utils/svgToDataUrl.js

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit c4b6f28

@vercel
Copy link

@vercel vercel bot commented on c4b6f28 Feb 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.