I have two images, one is like an icon and the other is the icon background, what is the best way to combine these two images and make a google marker v3 icon? They are not svg or paths, they are just two png images.
相关问题
- How do you change the color of the dotted line on
- How do you change the color of the dotted line on
- draw polylines with different colors on v2 maps
- Add HTML class/ID to Google Maps Marker (API V3)
- Cannot resolve method “getMapAsync”
相关文章
- Updating a map marker in android
- Avoiding “Sorry, we have no imagery here” with Goo
- Custom Marker performance iOS, crash with result “
- Google Map Gradient Polylines for Android?
- Angular 6 - @types/googlemaps/index.d.ts' is n
- Google Maps - Get Polygon border of zones/neighbor
- Google Map Marker Clickable Area
- getSupportFragmentManager().findFragmentById retur
Simplest way: Use an image editor to make a single image and use that as the icon for your custom marker.
If you can't or don't want to do that you can make a custom overlay (reference) that behaves like a marker and use it to overlay the two images in the correct order on the map.
You can use an excellent little library, RichMarker. Its documentation is here.
To make usage easier, you can even create your own custom marker class, something like this:
'Ns' is whatever namespace you use, if you do.
From here on it's CSS work, you can position the images as you like.