public void SetImage(View view)
 {
     if (null != overlay)
     {
         overlay.SetImage(BitmapDescriptorFactory.FromResource(Resource.Drawable.makalong));
     }
 }
Example #2
0
    void UpdateGroundOverlayProperties()
    {
        CenterCamera(DemoUtils.BerlinLatLng);

        _groundOverlay.Bearing     = 135;
        _groundOverlay.IsClickable = true;
        _groundOverlay.IsVisible   = true;

        // Mutually exclusive but setting both to test
        _groundOverlay.Position = DemoUtils.BerlinLatLng;
        _groundOverlay.Bounds   = DemoUtils.BerlinLatLngBounds;

        _groundOverlay.Transparency = 0.25f;
        _groundOverlay.ZIndex       = 3;
        _groundOverlay.SetDimensions(200000);         // Just setting twice to test
        _groundOverlay.SetDimensions(200000, 200000);
        _groundOverlay.SetImage(ImageDescriptor.FromAsset("overlay.png"));
        _groundOverlay.SetPositionFromBounds(DemoUtils.BerlinLatLngBounds);
    }
 public void SwitchImage(View view)
 {
     currentEntry = (currentEntry + 1) % images.Count;
     groundOverlay.SetImage(images [currentEntry]);
 }