Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

[r1-dev] supporting labels on markers directive #139

Merged
merged 8 commits into from
Nov 27, 2013

Conversation

fwitzke
Copy link
Contributor

@fwitzke fwitzke commented Nov 11, 2013

No description provided.

@createMarker(model)
@doClick = doClick
@$log = directives.api.utils.Logger
constructor:(@index, @model, @parentScope, @gMap, $timeout, @defaults, @doClick, @gMarkerManager)->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice , I have been doing this myself lately as well with @ params in the constructor.

@ghost ghost assigned nmccready Nov 11, 2013
@@ -1,6 +1,9 @@
@ngGmapModule "directives.api.utils", ->
@GmapUtil =
getLabelPositionPoint:(anchor) ->
if anchor == undefined
return undefined

anchor = /^([\d\.]+)\s([\d\.]+)$/.exec(anchor)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comment this regex's purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't create it as it was already used by the marker-label directive but it's supposed to match two digits separated by space I think. The anchor param is represented by a point and we are using this format "d d".

@nmccready
Copy link
Contributor

So far looks good, I will run it later when I get the chance.

@nmccready
Copy link
Contributor

I just fixed some major bugs on Window. I can try to merge this or you can. I will definitely review it this week. If it passes this week then it will make it in with the first release.

@nmccready
Copy link
Contributor

LGTM, passes when ran locally ty @fwitzke . Sorry I took so long.

nmccready added a commit that referenced this pull request Nov 27, 2013
[r1-dev] supporting labels on markers directive
@nmccready nmccready merged commit 7ca68d1 into angular-ui:r1-dev Nov 27, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants