Replies: 2 comments
-
Another option I'm looking at is making a change in a local copy of the CommunityToolkit.Maps source code and setting the pin icon in the map javascript. This is in
The problem I'm running into here is that I don't think it's finding the image at the path I supply. When I'm setting the path to Icon the pin no longer has the default image, but it's just blank and only has the label. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
As a solution I've gone for setting the icon of the pin with inline SVG as shown here https://learn.microsoft.com/en-us/bingmaps/v8-web-control/map-control-concepts/pushpins/custom-inline-svg-pushpin-example I also made a little change to the original code and I set the label text to the
A nice to have would be if |
Beta Was this translation helpful? Give feedback.
-
Hello,
Sorry if this has already been covered, I'm trying to customise the map pins and struggling to find out how.
I've tried to append to the MapPinHandler like so:
The
CustomMapPinView
is just a border containing a label, the label text is bound to theLabel
property ofPin
.I've also tried deriving from
MapPinHandler
similar to how I've seen theMapHandler
set up in the toolkit:Neither makes a difference to how the pin appears. Could anyone point out where I've gone wrong?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions