question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set padding usage

See original GitHub issue

hi i saw setPadding method was added in new released sdk. I’ve tried and it seems that it’s not taking effects.

Map.setPadding(56, 16 , 56 ,16); Map.zoomTo(GeoBoundingBox.getBoundingBoxContainingGeoCoordinates(list), Map.Animation.LINEAR, 0);

This is how i implement it, any suggestion?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
NazarKacharabacommented, Jun 3, 2019

Hi @bluesnow4425, What are you trying to achieve with padding? Set padding to list of MapObject?

Method setPadding is only used to define invisible area of the map around MapView(doc), it does not set padding for MabObject(like MapMarker, MapCircle etc), for this purposes use this approach.

0reactions
samvgorodecommented, Mar 3, 2020

@NazarKacharaba thanx for the explanation!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Padding - W3Schools
Padding is used to create space around an element's content, inside of any defined borders. This element has a padding of 70px.
Read more >
padding - CSS: Cascading Style Sheets - MDN Web Docs
The padding CSS shorthand property sets the padding area on all four sides of an element at once.
Read more >
How to Set Padding inside the Elements Using CSS
The CSS padding properties allow you to set the spacing between the content of an element and its border (or the edge of...
Read more >
padding | CSS-Tricks
Padding values are set using lengths or percentages, and cannot accept negative values. The initial, or default, value for all padding ...
Read more >
CSS: padding property - TechOnTheNet
This CSS tutorial explains how to use the CSS property called padding with syntax and examples. The CSS padding property defines the padding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found