Angular directive

custom-marker source

Description

Marker with html Requires: map directive Restrict To: Element

Parameters

NameTypeDescription
Attr2Options service

convert html attribute to Google map api options

$timeout service

AngularJS $timeout

Attributes

NameTypeDescription
position String

required, position on map

z-index Number

optional

visible Boolean

optional

Example

Example:
  <map center="41.850033,-87.6500523" zoom="3">
    <custom-marker position="41.850033,-87.6500523">
      <div>
        <b>Home</b>
      </div>
    </custom-marker>
  </map>