Alex S Posted October 3, 2020 Share Posted October 3, 2020 Hello, I'm unable to set the background cursor icon in UniMap. It always remains the hand icon. The UniMap.Cursor property does not seem to be linked? Is there another property, or method to use? I want to capture some vectors, and want to switch to a cross-hair icon during the capturing, switching back to the default hand icon, at the end. Currently using UniGUI 1.90.0.1534 from Delphi 10.3 Thanks, Alex Quote Link to comment Share on other sites More sharing options...
Alex S Posted October 4, 2020 Author Share Posted October 4, 2020 I was able to add these two public procedures to TUniMap in uniMap.pas: procedure TUniMap.SetCrossHairCursor; begin JSCallGlobal('$("#'+FMapJSName+'").css', ['cursor','crosshair']) end; procedure TUniMap.ResetCursor; begin JSCallGlobal('$("#'+FMapJSName+'").css', ['cursor','']); end; And calling them works. Reference: https://stackoverflow.com/questions/14106687/how-do-i-change-the-default-cursor-in-leaflet-maps Not sure if this is the best way, but seems to work. 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.