I just did the following combination:
cat map.json | curl -i -u "username:password" -d @- -X POST
http://geocommons.com/maps.json -H "Content-Type:application/json"
With the following json:
{
title: "Map Title",
description: "A description",
tags: "example,tags,more",
extent: [-180,-90,180,90], // [west,south,east,north] -
longitude, latitude decimal degrees - WGS84
basemap: "Google Terrain", // deprecated - will soon be using
Finder raster layers
projection: "EPSG:3785", // not supported yet (default EPSG:3785
- Web Spherical Mercator, aka 'Google Tiles')
}
Were you using a different example that did not work? Could you paste
it into your message?
Thanks,
Kate
We did a little bit of work with GeoIQ and Appcelerator at a hack day.
Some of the API calls are here:
https://github.com/fortiusone/Flying-Pancakes/blob/master/Resources/geoiq.js
At the moment we are cleaning up our documentation. I'll see about
getting the map portion into better shape in the next day or two.
Thanks,
Kate
I haven't gotten as far as I hoped with updating the documentation.
It is currently an ongoing work to make things more clear.
I have updated some things for creating a map here:
https://docs.google.com/document/d/14Zg514AMWpfpR6rLW93bCTSbXf58ywE3jnwZr1rOWQo/edit?hl=en&authkey=CJbi58QP
You definitely need the title and basemap parameters for creating a
map. Could you try it with just those and let me know what happens.
Also if you could share your code so far that would greatly help.
Thanks,
Kate