Bryan - 2014-05-10

Hello Babak,
I would like to be able to set a visible property to all objects added to the MapView.
Is this possible?

Additionally, it would be nice to add objects to specific layers and control the visibility and other properties of the entire layer.

For example:

aLayer := MKLayer.Create; //creates a layer Object
MyMap.Layer.add(aLayer); //add the layer to my desired TDPFMapView
aLayer.Name := MyCircleLayer //Set the name of my layer
aLayer.AddCircle( 23.3, -123.3, 200, TAlphaColors.Red, TAlphaColor.Black, 2, 1, '', ''); //add circle
aLayer.visible := False; // turn the visibility of all objects on the layer
aLayer.Alpha := 0.5; //sets the alpha for all objects on the layer.
aLayer.Tag := 2;
aLayer.clear; //clears all object on the layer
aLayer.zOrder := 1; //set the zOrder of the layer

//go through all layers on the map...
for x := 0 to MyMap.Layers.Count -1 do
begin
MyMap.Layers[x].delete;
end;

//find a single layer by name (or I guess by id)
MyMap.LayerByName(MyCircleLayer).Delete;
MyMap.LayerByName(MyCircleLayer).Alpha := 0.5;

The layers could add all map objects like circles, polygons, polylines, annotations etc.... The layer just gives better management of the objects and grouping of objects as needed.

Also, is it possible to overlay an image on the map? Like an image where all 4 corners can be mapped to a CLLocationCoordinate2D and the image alpha set to show transparency.

I hope this is possible.
Regards,
Bryan