-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[r1-dev] Get map options from scope, instead of parsing HTML-embedded JSON #80
Conversation
Waiting on Laplante on this one as I don't fully know its complications. This should not affect any of my major changes to Marker,Window,Markers, and Windows directives. |
Ok, no problem. It shouldn't have any complications unless you use json in html attributes in concrete usage cases. The travis build seems to pass and demo works well with all the markers and windows. |
Have you run the example with this as well and it all works? |
Yes, the example demo works. |
I've been using this changeset sucessfully on my project, any progress on merging? |
It is not that this can not be merged. I am waiting on @nlaplante to get back. He has been on a sweet vacation. |
Please fix this with the new api changes. @nlaplante is this something you are ok with? With regards to opting out of the JSON stuff? |
Sorry did you mean this must be fixed somehow? |
What I mean is pull the latest down from nlaplante:r1-dev into your dmitrybelyakov:r1-dev. Fix the conflicts and post back. The conflicts are usually in example.html, grunt file, and wherever you made changes :) . |
Before you go through the trouble I'd wait for @nlaplante 's response. |
Conflicts: src/js/directives/map.js
@nmccready no trouble at all - just to resolve a one-line conflict. Yet I can see there are some problems with current state of r1-dev. Does the nlaplante:r1-dev example work well for you? |
@nmccready And two more things I found: Could we wrap this thing into some sort of There's also something wrong with the minified version. |
We could wrap it in the window.google or just google, but I would rather know about the error. If they are not loading the googlle_maps.js prior to our stuff; I would expect it to explode. Personally I'd rather see red then nothing. |
@nmccready I meant to say let's wrap just this one call. Because when you are not in a single-page app it doesn't make sense to include |
github seems crazy today :) |
Yes I couldn't even look at the code you mentioned cause of the DDos On Fri, Aug 16, 2013 at 10:04 AM, Dmitry Belyakov
|
I fixed this error last night btw on the scope issue. On Fri, Aug 16, 2013 at 2:12 AM, Dmitry Belyakov
|
I got you, ok this does make sense. Also it would be wise to not load out js page if you are not using it ;) . |
Add the |
@nlaplante can we merge this ticket to use scope options instead of json? I am about to add this to Window and Windows as well. I should add this to marker and markers too. |
+1 for options from scope. The attr version breaks when using arrays within arrays or if you use a google.maps object. Sent from my iPhone
|
Yeah going with scope props is OK with me. |
@nlaplante we need to figure out how to get grunt added to travis for build quality checks. The following needs to be fixed for this pull
The short of it remove the duplicate event and add a comma after options before bounds. |
…watches mean better performance. Also removed the @myScope.model = model out of setMyScope as this was causing the watch be entered twice.
…ows, Marker, and Markers. MarkerChildModel functionality is slightly more complicated but it should be faster. MarkerChildModel fixes for handleClick event errors on closing windows.
Conflicts: dist/angular-google-maps.min.js
Ok, got some time this morning to pull latest updates from r1-dev. So all lint errors are now fixed. Added map options to example as well. Should be good to merge. |
I will merge this first and then my new pull. Merging may be fun with the changes to the GruntFile.... |
[r1-dev] Get map options from scope, instead of parsing HTML-embedded JSON
No description provided.