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.

Add a method to remove polygons

See original GitHub issue

Hi, I’m having trouble removing existing Polylines on Android (I’ve not tested on IOS). This is how I add them:

this.map.addPolygon({
	id: this.circular_polyline_id,
	fillColor: new Color("#0099FF"),
	fillOpacity: 0.7,
	points: circlePoints.map(c => {
		return {
			'lat': c[1],
			'lng': c[0]
		}
	})
});

Before adding, I try to remove them like this:

this.map.removePolylines([this.circular_polyline_id]).then(response => {  

});

I’ve tried everything, even using setTimeout, etc.

Any ideias what I’m doing wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
EddyVerbruggencommented, Jul 3, 2018

4.1.1 released ➡️ grab it while it’s 🔥

Make sure to read the updated docs and or demo app to see how to use it.

1reaction
xjpmauriciocommented, Jul 3, 2018

I already update to the latest version, it works! Thanks!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blender: Reduce Polygons – Simply Explained - All3DP
This is perhaps the easiest method to reduce polygons in Blender due to its one and only control: the iteration count. As the...
Read more >
Add a method to remove polygons · Issue #237 - GitHub
Hi, I'm having trouble removing existing Polylines on Android (I've not tested on IOS). This is how I add them: this.map.
Read more >
Adding, Removing, and Modifying Polygons - Poser
Deselect mode button (8): Click the Deselect button to enable polygon deselection, and then click within the current object to remove polygons ......
Read more >
How do I add and remove Polygons on Google Maps v3?
If you have a reference to the polygon object you want to remove, then simply call the remove() method of that polygon.
Read more >
Eliminate Polygon Part (Data Management)—ArcGIS Pro
ArcGIS geoprocessing tool that creates a new output feature class containing the features from input polygons with some parts or holes of a...
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