Skip to content

Cannot change Bingmaps height/width #122

Description

@Faolan-dimplex

Hi,

I've been having a bit of trouble- It seems that every time I try to create a new Bing Maps instance it always sets the height to 100vh and width to 100vw. What's worse is that they are set with inline CSS, so I can't even change it with CSS unless I use horrible !important tags. Am I missing something glaringly obvious here?

Thanks
image

image

image

Activity

  1. thor-schueler commented on Nov 21, 2019

    @thor-schueler
    Contributor

    I think you might be :) Check out one of the samples from the wiki page, such as https://stackblitz.com/edit/bing-basic-map-with-single-marker. Here is the HTML for this:

    <div style="height: 600px">
      <x-map #xmap [Options]="_options" [Box]="_box">
        <x-map-marker 
          [Latitude]="29.714994" 
          [Longitude]="-95.46244"
          [Title]="'My Marker'"
          [IconInfo]="_iconInfo">
            <x-info-box
              [DisableAutoPan]="true"
              [Title]="'My InfoBox'"
              [Description]="'Hi, this is the content of the <strong>info window</strong>. It is your responsibility to implement functionality such as close, etc...'">
                <x-info-box-action [Label]="'Click Me'" (ActionClicked)="_click()"></x-info-box-action>
            </x-info-box>
        </x-map-marker>
      </x-map>
    </div>
    

    The sample is using an inline style, but you can use css classes just the same.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions