swift - MapBox MGLFeature identifier should be a unique identifier? -


i'm using mapbox , i'm getting features of building using following code:

let features = self.mapview.visiblefeatures(at: pointmapview)  if features.count > 0 {     let feature:mglfeature = features[0]     print("feature.identifier:\(f.identifier)") } 

everything works correctly, when print feature's identifier number 3, 4 , on. reading documentation of mglfeature, identifier:

"an object uniquely identifies feature in containing tile source value of property nsnumber object may in future instance of class, such nsstring.

the identifier corresponds feature identifier (id) in tile source. if source not specify feature’s identifier, value of property nil."

since identifier should unique, expect more complex number or string 3 or 4. why "simple" identifier?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -