-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Windows directive not rendering the custom-class(options.boxClass) passed as an attribute. #1077
Comments
Well an easy check is putting a breakpoint in WindowsParentModel where it creates a child model. Check what scope.options is. See what the options are on line 201 vs 202. Then walk through the child. |
Well. Putting a break point after Line:201 gives me this:
This is the custom class which I wish to provide. But
As far as my understanding goes, I have followed the documentation on the site to upgrade. And this code was working fine before the upgrade. Can you point me in an appropriate direction? |
Ahh I see your issue, the templateUrl and templateParameter is to a single template not a different one to each model. So do don't wrap your template attributes in double and single quotes. |
Do you mean something like this:
But this would be kinda counter productive because the templateParameters are different for different models and I would have to pass them and interpolate them in run time to display marker specific information when users click on the markers. |
Everything gets passed through the template so it is unique. Did u try it? |
I did try but it still does not work. The markers show up fine. But when I click them,No window opens and the console throws:
HAML:
Markers Model:
Map Object:
|
To simplify your issue.. do you really need windows? There is not requirement to use windows inside of markers. (it is a convenience that is deceptive). It is way more performant to use window and only show one window at a time when needed. (not rendering them all in memory hidden like windows). Windows is only useful if you need them all shown immediately. |
I don't need windows, but I need markers. Can I use window within markers instead of windows? |
Yes search closed existing issues. This has been mentioned countless times. |
Okay. Apologies for asking again. Thank you. |
actually it is mentioned here (needs an example) http://angular-ui.github.io/angular-google-maps/#!/api#windows |
Hi. I recently upgraded to 2.0.12 since 1.0.17 is not compatible with angular#1.3.8. Clearly a lot of things have changed since then and I did spend a considerable time porting all my previous code to the latest version. Everything has worked except for the ui-gmap-windows directive. The window does pop up. But it is not using my custom class which was perfectly working earlier. From here, I have tried to provide as much info as I can think of for you guys to get a better understanding. Please bear with me if it is not sufficient. I will be more than glad to provide whatever else you need from me. Need to fix this asap since we have a production upgrade scheduled soon. Thanks a lot in advance, guys. You rock.
The haml code for my own map directive:
Here is the coffeescript of the map object:
And here in my markers model(coffeescript):
Can someone take a look at this, pretty please?
The text was updated successfully, but these errors were encountered: