MapsRepository
Hierarchy
- Repository
- MapsRepository
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
Returns MapsRepository
Properties
className
classType
completeChunks
events
hasMore
loaded
optionalmap
middlewares
name
noFiltersNoLoad
objects
path
query
optionalschema
server
Methods
clear
Returns JQueryDeferred<void>
completeChunk
Parameters
chunks: any
defer: any
Returns void
copy
Parameters
id: number
title: string
Returns JQueryDeferred<any>
create
Parameters
object: Record<string, unknown>
Returns JQueryDeferred<any>
createFromV2
Parameters
object: any
Returns any
defaultResponseMiddleware
Parameters
dataJSON: string | {}
Returns {}
[key string]: any
delete
Parameters
id: number
Returns JQueryDeferred<void>
encodeData
Parameters
params: any
Returns {}
[key string]: any
find
Parameters
optionalquery: Query | {}
Returns JQueryDeferred<any>
findById
Parameters
id: string | number
nocache: boolean = false
Returns JQueryDeferred<any>
formatCSV
Parameters
data: {}
map: MapSVGMap
Returns {}
[key string]: any
getApiEndpoint
Parameters
name: string
optionalmodel: Partial<Model>
Returns ApiEndpoint
getLoaded
Returns ArrayIndexed<Model>
getLoadedAsArray
Returns ArrayIndexed<Model>
getLoadedObject
Parameters
id: string | number
Returns Model
getRequest
Parameters
action: string
urlParams: Record<string, string | number>
data: {} = {}
Returns MapsvgRequest
getResponse
Parameters
_data: string
request: any
Returns MapsvgResponse
getSchema
Returns Schema
import
Parameters
data: {}
convertLatlngToAddress: boolean
map: MapSVGMap
Returns any
importByChunks
Splits data to small chunks and sends every chunk separately to the server
Parameters
data: {}
Data to import
language: string
Language for Geocoding conversions
convertLatlngToAddress: boolean
Whether lat/lng coordinates should be converted to addresses via Geocoding service
Returns any
init
Returns void
loadDataFromResponse
Parameters
data: string | Record<string, any>
ctx: MapsvgCtx
Returns void
onFirstPage
Returns boolean
onLastPage
Returns boolean
reload
Returns Promise<JQueryDeferred<any>>
setNoFiltersNoLoad
Parameters
value: boolean
Returns void
setSchema
Parameters
schema: string | Schema
Returns void
update
Parameters
object: any
Returns JQueryDeferred<T>
Imports data from a CSV file.