couchbase / couchbase-lite-ios

Lightweight, embedded, syncable NoSQL database engine for iOS and MacOS apps.
Apache License 2.0
1.62k stars 297 forks source link

How to do pagination in Map by using GeoQuery ? #1582

Closed Tamil-Arya closed 7 years ago

Tamil-Arya commented 7 years ago

I need to do pagination in the CATileLayer ( Blue print Map ) by using GeoQuery. But there is no more info about GeoQuery. Scenario : I implemented blue print using CATileLayer as Map for pointing particular location as well saving those data into the CouchDB. Now i have pointed more number of locations ( ex : 1000 location ) so now for this blue print i need to do pagination.

Saved in CouchDB : "CBLQueryRow[key={\"x\":30.87646403819598,\"rev\":\"74-6f383edea147189085edfeb95be\",\"type\":\"Location\",\"y\":138.300981086858,\"zoom\":1,\"latitude\":37.785834,\"longitude\":-122.406417}; value=(null); id=F8CC0F5EDAC0495BA406ADD404523B0B]" ) "CBLQueryRow[key={\"x\":10.87646403819598,\"rev\":\"24-757af6f383edea147189085edfeb95be\",\"type\":\"Location\",\"y\":68.981086858,\"zoom\":3,\"latitude\":54.85675834,\"longitude\":-152.406417}; value=(null); id=CC0F5EDAC0495BA406ADD404523B0B]" )

look at the blueprint map & i referred below link but i couldn't get the prepare answer.

screen shot 2017-01-27 at 10 52 49 am

https://github.com/couchbase/couchbase-lite-ios/wiki/Geo-Querying

snej commented 7 years ago

Hi! Please ask your question on the Couchbase web forum or the Couchbase Mobile mailing list. We use Github issues only for bug reports and feature suggestions. Thanks.

snej commented 7 years ago

Generally you do pagination of a query by setting the skip and limit properties.