Skip to content

Commit eb1918b

Browse files
committed
fix TileOverlay remove bug
1 parent bbe9a96 commit eb1918b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/android/plugin/google/maps/PluginTileOverlay.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ private void createTileOverlay(final JSONArray args,
4242
TileOverlay tileOverlay = this.map.addTileOverlay(options);
4343
String id = "tile_" + tileOverlay.getId();
4444

45-
this.objects.put("tileProvider_" + id, tileProvider);
46-
45+
this.objects.put(id, tileOverlay);
46+
this.objects.put("tileProvider_" + id.replace("tile_", "tileProvider_"), tileProvider);
4747

4848
JSONObject result = new JSONObject();
4949
result.put("hashCode", tileOverlay.hashCode());

0 commit comments

Comments
 (0)