Skip to content

Commit

Permalink
Delete layer implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
mager committed Mar 26, 2011
1 parent c1ea5a1 commit 7e5516f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Services/SimpleGeo.php
Expand Up @@ -206,6 +206,20 @@ public function updateLayer($layer, $title = 'Example title', $desc = 'Example d
return @json_decode($result->getBody());
}

/**
* Delete a layer
*
* @return string
*/
public function deleteLayer($layer)
{
$version = '0.1';
$result = $this->_sendRequest(
$version . '/layers/' . $layer . '.json', array(), 'DELETE'
);
return ($result === null);
}

/**
* Add a record to a layer
*
Expand Down

0 comments on commit 7e5516f

Please sign in to comment.