Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created October 11, 2011 17:37
Show Gist options
  • Save emilepetrone/1278786 to your computer and use it in GitHub Desktop.
Save emilepetrone/1278786 to your computer and use it in GitHub Desktop.
// add or update a layer
SGLayer *layer = [SGLayer layerWithName:@"com.simplegeo.example"
title:@"Example Layer"
description:@"Created from SimpleGeo.framework"
callbackURLs:nil]]; // optional list of callback URLs
[client addOrUpdateLayer:layer
callback:[SGCallback callbackWithSuccessBlock:
^(id response) {
// addition/update confirmed
} failureBlock:^(NSError *error) {
// addition/update failed
}]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment