Coder Social home page Coder Social logo

UserControl on a pin about mapsui HOT 3 OPEN

MickeyLeMutant avatar MickeyLeMutant commented on June 11, 2024
UserControl on a pin

from mapsui.

Comments (3)

pauldendulk avatar pauldendulk commented on June 11, 2024

Yes this is possible, but you have to write that code yourself.

I think we do not have a sample anymore for that because it requires implementations on each platform and we want to reduce the need for maintenance. I did something like this on MAUI with v4. The Info event will return the screen coordinates (and the tapped feature if you tapped one), you can use the screen coordinates to show the user control over the MapControl.

I did this on MAUI and I needed a transparent (input-transparent and color-transparent) AbsoluteLayout placed on top of the MapControl to be able to place the user control on the screen coordinates (Perhaps I should derive the MAUI MapControl from AbsoluteLayout to make this easier).

btw, In most of my projects I end up placing the user control to side or the bottom, because it is just nice UI to have it in a fixed position.

from mapsui.

MickeyLeMutant avatar MickeyLeMutant commented on June 11, 2024

Thank you very much for the prompt response.

I will look into MAUI v4.

I noticed that you positioned the user control in the bottom corner. I'm accustomed to having information closer to the pin, but I will evaluate the advantage of placing it in a fixed position.

from mapsui.

pauldendulk avatar pauldendulk commented on June 11, 2024

With 'UseControl' I assumed you are referring to a popup created with MAUI controls. We have no samples of that. About 'positioned the user control in the bottom corner', I think you are referring to the MapInfoWidget, this is just an option, mainly added to keep the samples simple. Another option would be to use a callout. Loot at the Info|SingleCallout sample.

from mapsui.

Related Issues (20)

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.