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

ac-html element is shown when show set to false #216

Closed
nadavpld opened this issue Feb 27, 2018 · 1 comment · Fixed by #219
Closed

ac-html element is shown when show set to false #216

nadavpld opened this issue Feb 27, 2018 · 1 comment · Fixed by #219

Comments

@nadavpld
Copy link

Intended outcome:
Show a sample div in a specific location over the map

Actual outcome:
When show set to true, div is shown correctly

<div id="map">
    <ac-map [sceneMode]="sceneMode" id="main-map">
       <ac-html [props]="{position: getMetaDataPosition(), show: true}">;
            <div style="color:white; font-size: 50px;">TEST</div>
        </ac-html>
    </ac-map>
</div>

https://imgur.com/a/O1seE

When show set to false, div is shown on the bottom left side of the page. Seems like the css display property doesnt change.

<div id="map">
    <ac-map [sceneMode]="sceneMode" id="main-map">
       <ac-html [props]="{position: getMetaDataPosition(), show: false}">;
            <div style="color:white; font-size: 50px;">TEST</div>
        </ac-html>
    </ac-map>
</div>

https://imgur.com/a/GDNNq

Sorry for the partial screen shots.. couldnt post the original...

Version

@popoleeMaster
Copy link

popoleeMaster commented Oct 4, 2019

I still have this in the latest 0.6 maybe slightly different

<ac-layer #menuLayer acFor="let menu of menu$" [context]="this">
  <ac-html-desc props="{
    position: menu.position,
    fillColor : labelParam.fillColor,
    show: false,
    horizontalOrigin : labelParam.horizontalOrigin,
    verticalOrigin : labelParam.verticalOrigin,
    scale: 0.1,
    pixelOffset : labelParam.pixelOffset,
  }">
    <ng-template let-html>
      My Div show is : {{ html.show }}
        <!-- <ndc-dynamic [ndcDynamicComponent]="type" [ndcDynamicInputs]="inputs"></ndc-dynamic> -->
    </ng-template>
  </ac-html-desc>
</ac-layer>

Result => Div is shown.

https://prnt.sc/pem22r

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

Successfully merging a pull request may close this issue.

2 participants