Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created September 22, 2011 21:01
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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