Delete a KML Layer
Joined: 18 May 2010
Topic: Delete a KML Layer
Posted: 28 Jan 2015 at 9:46am
You can manually keep track of the KML layer ID.
The first layer has ID 0, the ID is incremented by 1 for each extra layer added.
As an alternative you can remove all KML layers using the DeleteAllMapKMLLayer call, then add only the required KML layer(s) again.
Joined: 29 Oct 2014
|Post Options Quote Reply Posted: 30 Nov 2014 at 8:18am|
the function DeleteMapKMLLayer expects the ID of the KMLLayer to delete.
How do I get it?
AddMapKMLLayer just returns a boolean:
function AddMapKMLLayer(Url: string; ZoomToBounds: boolean = true): boolean;
function DeleteMapKMLLayer(Id:integer): boolean;
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum