Lightning strikes are a common occurrence this time of year, leading to injuries and damage within the US and globally. AerisWeather Maps offers a lightning strike density layer, which highlights clusters of frequent lightning activity. While visualizing clusters and density is useful for getting a sense of general lightning activity, many users have requested the ability to plot individual strikes. With our new Lightning Strikes layer in Maps, now you can!
As a value-added reseller of Earth Networks Total Lightning Network, we are announcing two new lightning strike layers within Maps. These new layers display lighting strikes over the past 5 to 15 minutes and are global. Best of all, these layers are already included as a standard option with all levels of Maps and Flex subscriptions!
The new lightning-strikes layer displays lighting strikes that have occurred over the past 15 minutes, fading from white (latest strikes) to gray (oldest strikes). The layer is updated every five minutes. For instance, you want to display lightning strikes around Minneapolis for the past 15 minutes:
1 |
http://maps.aerisapi.com/[client_id]_[client_key]/flat-dk,water-depth,lightning-strikes,admin-cities-dk/700x400/minneapolis,mn,6/current.jpg |
If you would rather display near real-time activity on the lightning map instead of the past 15 minutes, the lightning-strikes-5m layer displays the strikes over the past 5 minutes and is updated every 5 minutes. The following is the same 15-minute example above but updated to only display the most recent strikes over the past 5 minutes:
1 |
http://maps.aerisapi.com/[client_id]_[client_key]/flat-dk,water-depth,lightning-strikes-5m,admin-cities-dk/700x400/minneapolis,mn,6/current.jpg |
As with all of our supported map layers, you can start utilizing the lightning strike layers today using our Map Builder tool within your account. The Lighting Strikes layer is available under the Severe category. Once you add the layer to your map, click the edit icon to switch between the 5 and 15-minute options:
As with any Maps layer, they can be used on static maps or within interactive maps. The following snippet provides an example of using AerisJS to add lightning strikes to an interactive map:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
<div id="map-canvas"></div> <!-- Leaflet --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.css"/> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.js"></script> <script type="text/javascript" src="https://cdn.aerisjs.com/aeris.js"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <style> #map-canvas { width: 800px; height: 600px; } </style> <script type="text/javascript"> // Configure Aeris API keys aeris.config.set({ apiId: '[client_id]', apiSecret: '[client_secret]' }); // Create the map, where 'map-canvas' is the id of an HTML element. var map = new aeris.maps.Map('map-canvas', { zoom: 4, center: [38.5482, -96.3281], baseLayer: new aeris.maps.layers.AerisTile({ tileType: 'flat-dk', zIndex: 1 }) }); // Create 'lightning-strikes' layer new aeris.maps.layers.AerisTile({ tileType: 'lightning-strikes', zIndex: 7, map: map }); // Create 'admin-cities' layer new aeris.maps.layers.AerisTile({ tileType: 'admin-cities-dk', zIndex: 8, map: map }); </script> |
Try combining the lightning strikes layers with other layers, such as radar or the lightning strikes density for some unique visualizations:
1 |
http://maps.aerisapi.com/[client_id]_[client_key]/flat-dk,water-depth,lightning-strike-density,lightning-strikes,admin-cities-dk/700x400/minneapolis,mn,6/current.jpg |
Start using the lightning layers today with your Maps premium account or the Maps free developer trial!
2 Comments
[…] Get data about lightning strikes in the past 5 minutes or past 15 minutes with this API. Image: AerisWeather […]
[…] Get data about lightning strikes in the past 5 minutes or past 15 minutes with this API. Image: AerisWeather […]