-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add setStyleById (light and dark themes) #9
Add setStyleById (light and dark themes) #9
Conversation
51a95dd
to
a383d7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGELOG.md обнови еще
@@ -0,0 +1,6 @@ | |||
import Foundation | |||
|
|||
public enum MapStyle: String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
доку пишем на все, такие требования
Sources/MapGL/MapView.swift
Outdated
@@ -288,6 +291,15 @@ public class MapView : UIView { | |||
self.js.setStyleZoom(zoom, options: options) | |||
} | |||
|
|||
/// Sets the map style by identifie and apply it to the map. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Sets the map style by identifie and apply it to the map. | |
/// Sets the map style by identifier and apply it to the map. |
@@ -112,7 +113,8 @@ final class HelloVC: UIViewController { | |||
maxBounds: GeographicalBounds( | |||
northEast: CLLocationCoordinate2D(latitude: 36, longitude: 57), | |||
southWest: CLLocationCoordinate2D(latitude: 10, longitude: 22) | |||
) | |||
), | |||
mapStyleId: self.mapStyle.rawValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо бы ещё в docs/{en,ru}/examples.md добавить пример с установкой в раздел Creating Map Widget
eb8dcdb
to
4992688
Compare
4992688
to
dc7cff6
Compare
No description provided.