Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions types/woosmap.map/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ declare namespace woosmap.map {
* Add features to this `Data` object to conveniently display them on this map.
*/
data: woosmap.map.Data;
/**
* Additional map types to overlay.
*/
overlayMapTypes: woosmap.map.MVCArray<woosmap.map.MapType>;
/**
* Creates a new map inside the given HTML container, which is typically a `DIV` element.
*/
Expand Down Expand Up @@ -1484,6 +1488,21 @@ declare namespace woosmap.map {
stylers: woosmap.map.MapStyler[];
}
}
declare namespace woosmap.map {
interface MapType {
/**
* Displays the overlay up to the maximum zoom level.
*/
maxZoom: number;
/**
* Displays the overlay startingat the minmum zoom level.
*/
minZoom: number;
getTile(tileCoord: woosmap.map.Point, zoom: number, ownerDocument: null): Element | null;

releaseTile(tile: Element): void;
}
}
declare namespace woosmap.map {
interface InfoWindowOptions {
/**
Expand Down
3 changes: 3 additions & 0 deletions types/woosmap.map/woosmap.map-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ map.panToBounds(new woosmap.map.LatLngBounds({ lat: 43.3, lng: 3.3 }, { lat: 48.
// $ExpectType void
map.setZoom(12);

// $ExpectType MVCArray<MapType>
map.overlayMapTypes;

/**
* Marker
*/
Expand Down