dylanfprice / angular-gm

AngularJS Google Maps Directives
MIT License
198 stars 47 forks source link

Labeled Markers? #86

Closed rrafey closed 8 years ago

rrafey commented 8 years ago

I'd like to use Labeled Markers with AngularGM using the standard Google Maps MarkerLabel feature:

https://developers.google.com/maps/documentation/javascript/3.exp/reference#MarkerLabel

Is there an easy syntax for just creating these with the existing AngularGM version, or does this require new code?

dylanfprice commented 8 years ago

Yes, you can specify the label in the MarkerOptions, see the docs for gm-marker

rrafey commented 8 years ago

That's cool. I didn't realize I could get more elaborate on the icon object to include labels.

Now that I have that working, I realized that Google's default MarkerLabel only allows single character labels. Is it possible to use the MarkerWithLabel extension (http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerwithlabel/docs/reference.html) with AngularGM?

If so, could you show me a very simple example of how you'd do that?

Thanks, Rick