0
votes

First attempt to use Leaflet geoJSON for polygons. GeoJSON file looks good. To keep it simple, coded this way:

var map = L.map( 'map', {
    center: [47.5, -121.95],
    minZoom: 10,
    zoom: 10,
    layers: [streets],

});

var myStyle = {
"color": "#ff7800",
"weight": 5,
"opacity": 0.65

};

L.geoJson(kcdfp_parcel, {
style: myStyle}).addTo(map);

None of the polygons display. There are no errors indicated by FireBug.

Am I missing something?

1
Can you show us your entire code in a JSFiddle? - Alexandru Pufan
Never used JSFiddle before, so hope this works. jsfiddle.net/d91Lryxd/11 - TomC
I believe you GeoJson coordinates are not valid. Try using www.geojson.io to test if your file is loading correctly. - Alexandru Pufan
geojson.io is not throwing an error, but the polygons are not displaying either. I'll try a different ESRIjson to geoJson converter. - TomC
The ArcGIS Desktop feature to JSON tool is putting out lat/lon numbers I don't understand. Instead of numbers like 47, -122, the format is 1288203, 136143. - TomC

1 Answers

0
votes

Use L.geoJSON instead of L.geoJson