Skip to content

Commit 4b95751

Browse files
author
Hirbod
committed
Merge pull request #551 from canadaka/master
fix TileOverlay remove bug & tileProvider functions still work
2 parents 140029f + 7fc351f commit 4b95751

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(id.replace("tile_", "tileProvider_"), tileProvider);
4747

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

0 commit comments

Comments
 (0)