Giter Club home page Giter Club logo

azuremaps's People

Contributors

carlospormo avatar galvesribeiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

azuremaps's Issues

Directions?

Are there any directions on how to use this?
Thank you

Set MapOptions wont work on WASM

Ha, nice component.

I am using your component on a WASM App and i try to set options but only the position has any effects.

private MapOptions opts { get;set; }


        protected async Task SetLocation()
        {
            //await this.azureMaps.ClearShapes();
            do
            {
                StateHasChanged();
                await Task.Delay(200);
            } while (azureMaps == null);
            await Task.Delay(1000);
            
            opts = new MapOptions
            {
                Center = new[] { Longitude, this.Latitude },
                Zoom = 16,
                View = ViewEnum.AE,
                Style = "all",
                EnableAccessibility = true,
                Interactive = true,
                ShowBuildingModels = true,
                ShowLogo = false,


            };

            var drawingManagerOptions = new DrawingManagerOptions
            {
                Latitude = this.Latitude,
                Longitude = this.Longitude,
                Radius = this.Radius
            };

            await this.azureMaps.SetCamera(opts);
            await this.azureMaps.AddShape(drawingManagerOptions, "pin", null);

            var properties = new ShapeProperties
            {
                SubType = "Circle",
                Radius = this.Radius
            };
            await this.azureMaps.AddShape(drawingManagerOptions, "circle", properties);
            
            
        }

On open i must set a delay because the component is null for long time on Blazor WASM?

private async Task OpenDialog(int id)
        {
            visibleDialog = true;

            var dat = pagedData.Where(x => x.Id == id).Single();
            Latitude = (double)dat.Latitude.Value;
            Longitude = (double)dat.Longitude.Value;
            await SetLocation();
        } 

Do you have an idea why this wont work, or maybe a workaround?
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.