Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrundritt committed Oct 9, 2020
1 parent 6e3b861 commit 06fc323
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 209 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,7 @@ Options for the FullscreenControl.

## Related Projects

**Open Azure Maps Web SDK modules**

* [Azure Maps Animation module](https://github.com/Azure-Samples/azure-maps-animations)
* [Azure Maps Geolocation Control module](https://github.com/Azure-Samples/azure-maps-geolocation-control)
* [Azure Maps Selection Control module](https://github.com/Azure-Samples/azure-maps-selection-control)
* [Azure Maps Sync Map module](https://github.com/Azure-Samples/azure-maps-sync-maps)
* [Azure Maps Services UI module](https://github.com/Azure-Samples/azure-maps-services-ui)

**Additional projects**

* [Azure Maps Web SDK Open modules](https://github.com/microsoft/Maps/blob/master/AzureMaps.md#open-web-sdk-modules) - A collection of open source modules that extend the Azure Maps Web SDK.
* [Azure Maps Web SDK Samples](https://github.com/Azure-Samples/AzureMapsCodeSamples)
* [Azure Maps Gov Cloud Web SDK Samples](https://github.com/Azure-Samples/AzureMapsGovCloudCodeSamples)
* [Azure Maps & Azure Active Directory Samples](https://github.com/Azure-Samples/Azure-Maps-AzureAD-Samples)
Expand Down
201 changes: 108 additions & 93 deletions dist/azure-maps-fullscreen-control.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/azure-maps-fullscreen-control.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/Fullscreen control options.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/2/atlas.min.js"></script>

<!-- Add reference to the fullscreen control module. -->
<script src="../dist/azure-maps-fullscreen-control.js"></script>
<script src="../dist/azure-maps-fullscreen-control.min.js"></script>

<script type='text/javascript'>
var map, fullscreenControl;
Expand Down
2 changes: 1 addition & 1 deletion examples/Fullscreen control.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//Add your Azure Maps key to the map SDK. Get an Azure Maps key at https://azure.com/maps. NOTE: The primary key should be used as the key.
authOptions: {
authType: 'subscriptionKey',
subscriptionKey: '<Your Azure Maps Key>'
subscriptionKey: 'tTk1JVEaeNvDkxxnxHm9cYaCvqlOq1u-fXTvyXn2XkA'
}
});

Expand Down
216 changes: 120 additions & 96 deletions src/control/FullscreenControl.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/extensions/EventManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FullscreenControl, FullscreenControlEvents } from '../control';
import { FullscreenControl } from '../control';

/**
* This module partially defines the map control.
Expand All @@ -20,15 +20,15 @@ declare module "azure-maps-control" {
* @param target The `fullscreenchanged` to add the event for.
* @param callback The event handler callback.
*/
add(eventType: "fullscreenchanged", target: FullscreenControl, callback: (e: FullscreenControlEvents) => void): void;
add(eventType: "fullscreenchanged", target: FullscreenControl, callback: (e: boolean) => void): void;

/**
* Adds an event to the `fullscreenchanged` once.
* @param eventType The event name.
* @param target The `fullscreenchanged` to add the event for.
* @param callback The event handler callback.
*/
addOnce(eventType: "fullscreenchanged", target: FullscreenControl, callback: (e: FullscreenControlEvents) => void): void;
addOnce(eventType: "fullscreenchanged", target: FullscreenControl, callback: (e: boolean) => void): void;


/**
Expand All @@ -37,6 +37,6 @@ declare module "azure-maps-control" {
* @param target The `fullscreenchanged` to remove the event for.
* @param callback The event handler callback.
*/
remove(eventType: string, target: FullscreenControl, callback: (e?: any) => void): void;
remove(eventType: string, target: FullscreenControl, callback: (e: boolean) => void): void;
}
}
6 changes: 3 additions & 3 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ declare module "azure-maps-control" {
* @param target The `fullscreenchanged` to add the event for.
* @param callback The event handler callback.
*/
add(eventType: "fullscreenchanged", target: atlas.control.FullscreenControl, callback: (e: atlas.control.FullscreenControlEvents) => void): void;
add(eventType: "fullscreenchanged", target: atlas.control.FullscreenControl, callback: (e: boolean) => void): void;

/**
* Adds an event to the `fullscreenchanged` once.
* @param eventType The event name.
* @param target The `fullscreenchanged` to add the event for.
* @param callback The event handler callback.
*/
addOnce(eventType: "fullscreenchanged", target: atlas.control.FullscreenControl, callback: (e: atlas.control.FullscreenControlEvents) => void): void;
addOnce(eventType: "fullscreenchanged", target: atlas.control.FullscreenControl, callback: (e: boolean) => void): void;


/**
Expand All @@ -103,7 +103,7 @@ declare module "azure-maps-control" {
* @param target The `fullscreenchanged` to remove the event for.
* @param callback The event handler callback.
*/
remove(eventType: string, target: atlas.control.FullscreenControl, callback: (e?: any) => void): void;
remove(eventType: string, target: atlas.control.FullscreenControl, callback: (e: boolean) => void): void;
}
}

Expand Down

0 comments on commit 06fc323

Please sign in to comment.