¡Ayúdanos a traducir esta Web y consigue licencias gratis!
Usuario anónimo  |  Ingresar  |  Regístrate

SnapShotControl

El SnapShotControl forma parte del GMaps Utility Library.

Hazle una foto al mapa actual y transfórmalo en un static map.




Code.aspx
<cc1:GMap ID="GMap1" runat="server" />
Code.aspx.cs
GMap1.addGMarker(new GMarker(new GLatLng(40, 0)));

SnapShotControl snapShotControl = new SnapShotControl();
//snapShotControl.buttonLabelHtml = "Take a photo!";
//snapShotControl.format = SnapShotControl.SnapShotControlImageFormatEnum.jpg;
//snapShotControl.hidden = true;
//snapShotControl.language = "es";
//snapShotControl.maptype = SnapShotControl.SnapShotControlValidMapTypesEnum.satellite;
//snapShotControl.useAutoDetectMarker = false;
//snapShotControl.usePolylineEncode = true;


GMap1.addControl(new GControl(snapShotControl));
Powered by Subgurim.NET