William32 Posted November 8, 2021 Share Posted November 8, 2021 Hi Is it possible to use unigui to draw on Maps ? any resources on that ? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted November 9, 2021 Share Posted November 9, 2021 15 hours ago, William32 said: Hi Is it possible to use unigui to draw on Maps ? any resources on that ? Hello Yes, you can draw polygon, circle, rectangle .. etc. Please check unimap - draw demo 1 Quote Link to comment Share on other sites More sharing options...
William32 Posted November 9, 2021 Author Share Posted November 9, 2021 Thanks. Actually I found I need to use very big image. So I need to display it in progressive mode , with zoom functionality and draw on it any resources ? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted November 9, 2021 Share Posted November 9, 2021 1 minute ago, William32 said: Thanks. Actually I found I need to use very big image. So I need to display it in progressive mode , with zoom functionality and draw on it any resources ? Hi Do you want to add image to map or do you want to use an image as map? Quote Link to comment Share on other sites More sharing options...
William32 Posted November 9, 2021 Author Share Posted November 9, 2021 want to use fixed image as map but very big with zoom functionality and drawings Thanks Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted November 9, 2021 Share Posted November 9, 2021 4 minutes ago, William32 said: want to use fixed image as map but very big with zoom functionality and drawings Thanks Which version and build are you using? Quote Link to comment Share on other sites More sharing options...
William32 Posted November 9, 2021 Author Share Posted November 9, 2021 I am using trial for now 1.90.0.1553 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted November 9, 2021 Share Posted November 9, 2021 6 hours ago, William32 said: I am using trial for now 1.90.0.1553 Hello Please try below code procedure TMainForm.UniButton18Click(Sender: TObject); begin with UniMap1, JSInterface do begin JSAssign('uniMap.options.crs', [JSStatement('L.CRS.Simple')]); JSCall('uniMap.setMaxBounds', [JSStatement('new L.LatLngBounds([0,500], [500,0])')]); UniSession.AddJS('var imageUrl = "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg";'); UniSession.AddJS('var imageBounds = [[250,0], [0,250]];'); UniSession.AddJS('L.imageOverlay(imageUrl, imageBounds).addTo('+JSName+'.uniMap);'); end; end; 1 Quote Link to comment Share on other sites More sharing options...
William32 Posted November 9, 2021 Author Share Posted November 9, 2021 Thanks will try it 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.