-
Notifications
You must be signed in to change notification settings - Fork 2
/
shakemaps.haml
37 lines (30 loc) · 1.58 KB
/
shakemaps.haml
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
%html
%head
%link{:rel => "stylesheet", :href => "http://openlayers.org/dev/theme/default/style.css", :type => "text/css"}
%link{:rel => "stylesheet", :href => "css/style.css", :type => "text/css"}
%script{:src => "http://openlayers.org/dev/OpenLayers.js", :type => "text/javascript", :charset => "utf-8"}
%script{:src => "js/shakemaps.js", :type => "text/javascript"}
%body{:onload => "init(); addUrl()"}
#container
#content
%h1{ :id => "title"} USGS ShakeMaps Feed
%p{ :id => "shortdesc"} Demo of GeoRSS in OpenLayers
#map.smallmap
%form{ :onsubmit => "return false;" }
GeoRSS URL:
%input{ :type=>"text", :id=>"url", :size=>"50", :value=>""}
%input{ :type=>"submit", :onclick=>"addUrl(); return false;", :value=>"Load Feed", :onsubmit=>"addUrl(); return false;" }
%h4 Example:
%p To try this out, entering one of the following URLs in field and press the "Load Feed" button
%pre http://www.accidentmap.com/en/georss/
%pre http://earthquake.usgs.gov/earthquakes/shakemap/rss.xml
%pre http://newsrss.bbc.co.uk//rss/newsonline_world_edition/science/nature/rss.xml
#sidebar
%h4 Background:
%p
%a{:href => "http://geospatial.nomad-labs.com/2010/04/26/usgs-shakemap-feed/", :rel => "external"}
Read the blog post
%h4 Get the code:
%p
%a{:href => "http://github.com/sabman/shakemaps", :rel=>"external"}
http://github.com/sabman/shakemaps