@Deprecated public class EditableCartoDbVectorLayer extends EditableGeometryDbLayer
Modifier and Type | Field and Description |
---|---|
static String |
TAG_CARTODB_ID
Deprecated.
|
static String |
TAG_GEOM
Deprecated.
|
static String |
TAG_GEOM_WEBMERCATOR
Deprecated.
|
lineStyleSet, minZoom, pointStyleSet, polygonStyleSet
Constructor and Description |
---|
EditableCartoDbVectorLayer(com.nutiteq.projections.Projection proj,
String account,
String apiKey,
String querySql,
String insertSql,
String updateSql,
String deleteSql,
boolean multiGeometry,
com.nutiteq.style.StyleSet<com.nutiteq.style.PointStyle> pointStyleSet,
com.nutiteq.style.StyleSet<com.nutiteq.style.LineStyle> lineStyleSet,
com.nutiteq.style.StyleSet<com.nutiteq.style.PolygonStyle> polygonStyleSet,
android.content.Context context)
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
cloneUserData(Object userData)
Deprecated.
Create clone for userData, specific on Object type what you use
|
protected com.nutiteq.ui.Label |
createLabel(Object userData)
Deprecated.
Generate pop-up labels, shown if you click on object.
|
protected void |
deleteElement(long id)
Deprecated.
Delete vectro object with given ID
|
protected long |
insertElement(com.nutiteq.geometry.Geometry element)
Deprecated.
Insert new object
|
protected com.nutiteq.utils.LongHashMap<com.nutiteq.geometry.Geometry> |
queryElements(com.nutiteq.components.Envelope envelope,
int zoom)
Deprecated.
Read Vector objects for given Envelope
|
protected void |
updateElement(long id,
com.nutiteq.geometry.Geometry element)
Deprecated.
Update vector object with given ID
|
addAll, calculateVisibleElements, discardChanges, getLineStyleSet, getPointStyleSet, getPolygonStyleSet, hasPendingChanges, loadState, removeAll, saveChanges, saveState, update
add, calculateVisibleElements, clear, createCullTask, elementUpdated, executeVisibilityCalculationTask, getCurrentZoomLevel, getDataExtent, getDataSource, getVisibleElements, loadVisibleElements, onElementChanged, onStartMapping, onStopMapping, registerDataSourceListeners, remove, setComponents, setProjection, setRenderProjection, setVisible, setVisibleElements, setVisibleElementsList, unregisterDataSourceListeners, updateVisibleElements
public static final String TAG_GEOM
public static final String TAG_GEOM_WEBMERCATOR
public static final String TAG_CARTODB_ID
public EditableCartoDbVectorLayer(com.nutiteq.projections.Projection proj, String account, String apiKey, String querySql, String insertSql, String updateSql, String deleteSql, boolean multiGeometry, com.nutiteq.style.StyleSet<com.nutiteq.style.PointStyle> pointStyleSet, com.nutiteq.style.StyleSet<com.nutiteq.style.LineStyle> lineStyleSet, com.nutiteq.style.StyleSet<com.nutiteq.style.PolygonStyle> polygonStyleSet, android.content.Context context)
proj
- Layer projectionaccount
- Your CartoDB AccountapiKey
- Your CartoDB API Key, get it from CartoDB account settings pagequerySql
- SQL template to query data.
First returned columns must be: cartodb_id (unique id), the_geom_webmercator (geometry), name (a string).
You can add more columns, these will go to userData.
Query parameter: !bbox!insertSql
- SQL template to insert data. Query parameter: !geom!updateSql
- SQL template to update data. Query parameters: !geom!, !name! and !id!deleteSql
- SQL template for deleting. Query parameter: !id!multiGeometry
- true if object must be saved as MULTIgeometrypointStyleSet
- required if layer has pointslineStyleSet
- required if layer has linespolygonStyleSet
- required if layer has linescontext
- Activity who controls the layerprotected com.nutiteq.utils.LongHashMap<com.nutiteq.geometry.Geometry> queryElements(com.nutiteq.components.Envelope envelope, int zoom)
EditableGeometryDbLayer
queryElements
in class EditableGeometryDbLayer
protected long insertElement(com.nutiteq.geometry.Geometry element)
EditableGeometryDbLayer
insertElement
in class EditableGeometryDbLayer
element
- element to insertprotected void updateElement(long id, com.nutiteq.geometry.Geometry element)
EditableGeometryDbLayer
updateElement
in class EditableGeometryDbLayer
id
- element id to updateelement
- new element stateprotected void deleteElement(long id)
EditableGeometryDbLayer
deleteElement
in class EditableGeometryDbLayer
id
- element id to deleteprotected com.nutiteq.ui.Label createLabel(Object userData)
EditableGeometryDbLayer
createLabel
in class EditableGeometryDbLayer
userData
- object custom attributesprotected Object cloneUserData(Object userData)
EditableGeometryDbLayer
cloneUserData
in class EditableGeometryDbLayer
userData
- object to cloneCopyright © 2014. All rights reserved.