Created
June 4, 2021 12:37
-
-
Save lagner/b71fa08bc2da4c53276998c9dd8811d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapObjectSource = GeometryMapObjectSourceBuilder(context: self.sdk.context) | |
let mapObject = GeometryMapObjectBuilder() | |
.setGeometry( | |
geometry: PointGeometry( | |
point: GeoPoint(latitude: Arcdegree(value: 54), longitude: Arcdegree(value: 37)) | |
) | |
) | |
.setObjectAttribute(name: "db_sublayer", value: .string("s_dvg_pin_regular_ini")) | |
.createObject() | |
_ = mapObjectSource.addObject(item: mapObject) | |
_ = mapObjectSource.setSourceAttribute(name: "db_sublayer", value: .string("cluster_with_counter")) | |
let geoMapObjectSource = mapObjectSource | |
.createSourceWithClustering(distanceMm: ScreenDistance(value: 5.0), maxZoom: Zoom(18.0)) | |
self.makeMapFactory().map.addSource(source: geoMapObjectSource) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment