Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm using Leaflet L.Polygon, but for some reason there's only blank site. Here's my code:

    var map ='map').setView([37.8, -96], 4);

    var cloudmade = L.tileLayer('http://{s}{key}/{styleId}/256/{z}/{x}/{y}.png', {
                attribution: 'Map data © 2011 OpenStreetMap contributors, Imagery © 2011 CloudMade',
                key: 'BC9A493B41014CAABB98F0471D759707',
                styleId: 22677

  var alabama = new L.polygon([


I found out what is wrong. These coordinates are in geojson format (lngs lat). But Leaflet polygon coordinates should be in lat lngs.

share|improve this question
Can you try adding another set of [] around the Multipolygon? – BradHards Jan 4 '13 at 5:11
I found out what is wrong. – againstflow Jan 4 '13 at 14:42
Can you add this as the answer, and mark it as answered? – BradHards Jan 4 '13 at 21:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.