Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created September 22, 2011 21:02
Show Gist options
  • Save erikhazzard/1236044 to your computer and use it in GitHub Desktop.
Save erikhazzard/1236044 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(-74, 42),
zoom: 11
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment