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

Add setStyleById (light and dark themes) #9

Merged
merged 3 commits into from
Dec 18, 2020

Conversation

brandFromNSK
Copy link

No description provided.

Copy link
Contributor

@teanet teanet left a 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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

доку пишем на все, такие требования

@@ -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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// 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
Copy link
Member

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

@brandFromNSK brandFromNSK force-pushed the feature/SDK-279-style-support branch 3 times, most recently from eb8dcdb to 4992688 Compare December 18, 2020 06:02
@teanet teanet merged commit cd6b509 into 2gis:master Dec 18, 2020
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

3 participants