biltax Posted January 31, 2020 Share Posted January 31, 2020 Hi, We are currently testing UniGui, which seems to be the right product for our needs. We want to bring our main product to the web and we hope a lot of unigui. We have several questions but we don't really know where to post them. The first concerns the markers on the map. It seems that the point given by lat / long is the point 0,0 of the icon of the marker (Top / Left). Is there an offsetX / Y property to position the point of the icon where we want at the exact location of the Lat / Long. For example if our icon is a Pin we would like have the point of the pin on Lat / Long and not somewhere upon at left of the pin (0,0 coord). Thank's for all. Gilles Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 31, 2020 Share Posted January 31, 2020 Hello, Please check Marker.Icon.IconAnchor https://leafletjs.com/reference-1.6.0.html#icon-iconanchor Quote Link to comment Share on other sites More sharing options...
biltax Posted January 31, 2020 Author Share Posted January 31, 2020 Thank's Hayri, but it's only readable property of Icon (with delphi). Marker.Icon.IconAnchor is only readable. How to change it, with JS ? If yes, how to do it ? Thank you agian. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 31, 2020 Share Posted January 31, 2020 Hi, It is TPoint so you need to use like Marker.Icon.IconAnchor.X and Marker.Icon.IconAnchor.Y Quote Link to comment Share on other sites More sharing options...
biltax Posted January 31, 2020 Author Share Posted January 31, 2020 Yes I Know it. When you compile you have an Error because IconAnchor isn't affectable (only read property) Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 31, 2020 Share Posted January 31, 2020 29 minutes ago, biltax said: Yes I Know it. When you compile you have an Error because IconAnchor isn't affectable (only read property) You right. Try Icon.iconAnchor := Point(1, 5) Quote Link to comment Share on other sites More sharing options...
biltax Posted January 31, 2020 Author Share Posted January 31, 2020 Great !!!! Thank's Hayri. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.