L.geoJSON
takes an object, not a URL. You can use jQuery's getJSON
to load the data, then call L.geoJSON
when it's ready:
$.getJSON("orders.json", function(data) {
L.geoJson(data, {
style: myStyle
}).addTo(map);
}
See http://api.jquery.com/jquery.getjson/ for more details.