Comments (5)
We have released a new version 1.1.x with easy marker customization. Please update your cocoapod or source files.
For more details see https://github.com/googlemaps/google-maps-ios-utils/blob/master/CustomMarkers.md
from google-maps-ios-utils.
@mountainvat thanks for the work to create an easy way to customize the markers but I still have a question.
How can we change the image using the "marker.icon" right? But how can we maintain/add the number of items in the cluster?
from google-maps-ios-utils.
Please take a look at https://github.com/googlemaps/google-maps-ios-utils/blob/master/app/CustomMarkerViewController.m for how to implement the - (void)renderer:(id<GMUClusterRenderer>)renderer willRenderMarker:(GMSMarker *)marker
method.
What do you mean by maintain/add the number of items in the cluster?
from google-maps-ios-utils.
@mountainvat to show the number of items in the cluster in front of the image.
e.g: "5" (representing the number of items in that cluster).
from google-maps-ios-utils.
You would have to use UIGraphics to draw the number on top of the mashed up image. See https://github.com/googlemaps/google-maps-ios-utils/blob/master/src/Clustering/View/GMUDefaultClusterIconGenerator.m for how the number is drawn.
from google-maps-ios-utils.
Related Issues (20)
- GMUGeoJSONParser.features add properties in every feature HOT 1
- Set An OverLay Title from GeoJsonParser.features HOT 2
- Color #01aafb Not rendered in Feature Properties HOT 1
- Equivalent of MultiPoint, MultiLineString, MultiPolygon HOT 2
- Question. How to set background color and text style in icon generator?
- Update documentation to use latest version of Maps SDK for iOS HOT 1
- Impossible to add GoogleMaps & GooglePlaces to project using Carthage HOT 2
- IconGenerator Text Color is always white HOT 2
- Failed to build module 'GoogleMapsUtils' HOT 4
- Unit tests workflow depends on Carthage
- map flickering issue HOT 1
- No such module HOT 1
- [Question] Will you release e.g. 4.2.0 on cocoapods with latest commit regarding Apple Silicon support? HOT 11
- Warning: Error creating LLDB target at path HOT 2
- The automated release is failing 🚨 HOT 1
- snippet-bot full scan
- 4.2.0 version not building cause of missing xframework file HOT 2
- SPM error cannot resolve it. HOT 2
- Clustering: add setter for clusterDistancePoints in the GMUNonHierarchicalDistanceBasedAlgorithm.m HOT 1
- Clustering : Cluster Markers do not initially hide their items on the map HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-maps-ios-utils.