copied script from leaflet example, testing.