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

[iOS Google Maps] Added support of lineDashPattern polyline props to iOS Google Maps #2243

Merged

Conversation

satori-ytolstoguzov
Copy link
Contributor

Does any other open PR do the same thing?

No

What issue is this PR fixing?

#1387

How did you test this PR?

https://github.com/satori-ytolstoguzov/rn-maps-callout-offset/tree/dashed-polylines

                    <MapView.Polyline coordinates={[
                        {latitude: 37.88045, longitude: -122.3903},
                        {latitude: 37.78825, longitude: -122.4324},
                        ]}
                                      lineDashPattern={[30, 30]}
                    />

                    <MapView.Polyline coordinates={[
                        {latitude: 37.88045, longitude: -122.4324},
                        {latitude: 37.78825, longitude: -122.3903},
                    ]}
                                      lineDashPattern={[30, 30, 15, 30]}
                    />

simulator screen shot - iphone 8 plus - 2018-05-07 at 15 17 53

@satori-ytolstoguzov satori-ytolstoguzov changed the title [iOS Google Maps] Added support of lineDashPattern and strokeColors polyline props to iOS Google Maps [iOS Google Maps] Added support of lineDashPattern polyline props to iOS Google Maps May 7, 2018
@rborn
Copy link
Collaborator

rborn commented May 8, 2018

Hi, thanks for your PR.
Do we have an equivalent in android?

Also could you please update the docs as well if needed?
🤗

@satori-ytolstoguzov
Copy link
Contributor Author

satori-ytolstoguzov commented May 8, 2018

@rborn My colleague has implemented similar/same thing for android. I think he will prepare PR soon.

The documentation isn't needed an update for this one, because it was wrong before, claiming that iOS support it, instead of only Apple Maps. With this PR both iOS map implementation support it, so documentation is correct once again.

@rborn
Copy link
Collaborator

rborn commented May 9, 2018

@alvelig 🐽

@alvelig
Copy link
Contributor

alvelig commented May 9, 2018

LGTM

@rborn rborn merged commit 607c9ed into react-native-maps:master May 10, 2018
@filipef101
Copy link

#2257

timxyz pushed a commit to 3sidedcube/react-native-maps that referenced this pull request Aug 24, 2018
* master: (168 commits)
  Adding overlaying components details (react-native-maps#2425)
  docs: pin color limitations for android (react-native-maps#2429)
  Revert "Added MBTiles support for iOS and Android (react-native-maps#2208)" (react-native-maps#2387)
  Added MBTiles support for iOS and Android (react-native-maps#2208)
  Fix disabling the toolbar and my location button (react-native-maps#2317)
  Fixes warnings about self (react-native-maps#2341)
  Android: Fix lineCap of Polyline (react-native-maps#2375)
  Update installation.md (react-native-maps#2381)
  update doc (react-native-maps#2363)
  zIndex doesn't work when the map moves in iOS 11 (react-native-maps#2359)
  Fix readme formatting (react-native-maps#2358)
  add support for calloutAnchor with GoogleMaps on iOS; fixes react-native-maps#1852 (react-native-maps#2351)
  Added animateToNavigation method to MapView (react-native-maps#2049)
  Add react-native@^0.55 to peerDependencies (react-native-maps#2332)
  Fix custom marker updates on android react-native-maps#1611 react-native-maps#2048
  [iOS] Prefix or eliminate globals in AIRMapMarker (react-native-maps#2306)
  Fix CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warnings (react-native-maps#2154)
  Fix for compile error (react-native-maps#2215). (react-native-maps#2232)
  Make tiles display at the same physical size regardless of pixel dens… (react-native-maps#2248)
  Added support of lineDashPattern polyline prop to iOS Google Maps (react-native-maps#2243)
  ...

# Conflicts:
#	lib/components/MapMarker.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants