Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to leverage the maxWidth property of SebmGoogleMapInfoWindow? #651

Closed
mensch opened this issue Sep 14, 2016 · 3 comments
Closed

How to leverage the maxWidth property of SebmGoogleMapInfoWindow? #651

mensch opened this issue Sep 14, 2016 · 3 comments

Comments

@mensch
Copy link

mensch commented Sep 14, 2016

I'm using the latest version of angular2-google-maps (0.14.0) and I'd like to use the maxWidth property of SebmGoogleMapInfoWindow, but it's unclear to me (from the documentation) how you would pass this configuration option. Is this only possible when calling SebmGoogleMapInfoWindow programmatically instead of creating it in a template like below?

  <sebm-google-map-marker *ngFor="let location of locations" [latitude]="location.latitude" [longitude]="location.longitude">
    <sebm-google-map-info-window [disableAutoPan]="false">
      InfoWindow stuff...
    </sebm-google-map-info-window>
  </sebm-google-map-marker>
@sebholstein
Copy link
Owner

@mensch it's possible like this:

<sebm-google-map-info-window [disableAutoPan]="false" [maxWidth]="myWidth">
      InfoWindow stuff...
    </sebm-google-map-info-window>

Feel free to reopen if you think there is a bug.

@mensch
Copy link
Author

mensch commented Sep 15, 2016

@SebastianM Thanks for the reply! I tried using maxWidth as an input (as well as zIndex), but I get the following error:

Can't bind to 'maxWidth' since it isn't a known property of 'sebm-google-map-info-window'.

For some reason isOpen and disableAutoPan do not trigger the same error, I'm using them without any problems.

@sebholstein
Copy link
Owner

Oh you're right, thats a bug! The binding is missing. We add that to the todays release (with angular 2.0.0 support)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants