Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created September 22, 2011 21:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save erikhazzard/1236041 to your computer and use it in GitHub Desktop.
Save erikhazzard/1236041 to your computer and use it in GitHub Desktop.
var map = new OpenLayers.Map({
div: "map",
layers: [
new OpenLayers.Layer.Vector("GeoJSON", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "county_file.json",
format: new OpenLayers.Format.GeoJSON({})
})
})
],
center: new OpenLayers.LonLat(-112.169, 36.099),
zoom: 11
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment