Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 769 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 769 Bytes

GoogleMapsSuperZoomMapType

A map type for Google maps that allows artificially zooming in beyond max zoom level

I've just taken applicable files from an Angular 2 app. It's written in Typescript, but the logic will be basically the same in Javascript (just without the typing).

Example usage

private maxZoomService: google.maps.MaxZoomService = new google.maps.MaxZoomService();

...

// map: google.maps.Map
let centerLatLng: google.maps.LatLng = map.getCenter();
this.maxZoomService.getMaxZoomAtLatLng(centerLatLng, (maxZoomResult: google.maps.MaxZoomResult) => {
	let superZoomMaxZoom: number = 24;
	new SuperZoomLayer(map, maxZoomResult.zoom, superZoomMaxZoom);
	this.zoomRangeModifierService.enableSuperZoom(map, superZoomMaxZoom);
});