typscripe implimenting
 panning zooming with typescripte