Skip to content

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

License

Notifications You must be signed in to change notification settings

dallinski/GoogleMapsSuperZoomMapType

Repository files navigation

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);
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published