SYMapPlace Class Reference

Represents a visual object on a map linked to a specific map coordinate, contains an image with text. The text is individual for each SYMapPlace, but the image is the same for places belonging to the same SYMapPlaceCategory. More...

#import <SYMapPlace.h>

Inheritance diagram for SYMapPlace:
Collaboration diagram for SYMapPlace:

Instance Methods

(nonnull instancetype) - initWithId:description:coordinate:categoryId:
 
((unavailable("Use init with parameters instead.") - __attribute__
 

Class Methods

((unavailable("Use init with parameters instead.") + __attribute__
 

Properties

NSInteger placeId
 Place identifier. Must be unique between all SYMapPlace objects passed to SDK. More...
 
NSString * placeDescription
 A description of the place, displayed on the map. To hide the text, use an empty string. More...
 
SYGeoCoordinatecoordinate
 Map coordinates of the place. More...
 
NSString * categoryId
 A category identifier the place belongs to. More...
 

Detailed Description

Represents a visual object on a map linked to a specific map coordinate, contains an image with text. The text is individual for each SYMapPlace, but the image is the same for places belonging to the same SYMapPlaceCategory.

SYMapPlace objects are disallowed to overlap, when two objects are too close, one of them will be hidden. If cluster is set for one or more categories, nearby objects are grouped together, and the description text is replaced with the number of the grouped objects.

See also: SYMapPlacesManager adds SYMapPlace to SYMapView. User interaction: SYMapPlaceIdObject, SYMapView.objectsAtPoint, SYMapViewDelegate.didSelectObjects. Clustering: SYMapPlaceCategory.clusterId.

To display an individual image per map object, use SYMapMarker.

Method Documentation

◆ initWithId:description:coordinate:categoryId:

- (nonnull instancetype) initWithId: (NSInteger)  placeId
description: (nonnull NSString *)  description
coordinate: (nonnull SYGeoCoordinate *)  coordinate
categoryId: (nonnull NSString *)  categoryId 

◆ __attribute__ [1/2]

- ((unavailable("Use init with parameters instead.") __attribute__

◆ __attribute__ [2/2]

+ ((unavailable("Use init with parameters instead.") __attribute__

Property Documentation

◆ placeId

- (NSInteger) placeId
readnonatomicassign

Place identifier. Must be unique between all SYMapPlace objects passed to SDK.

◆ placeDescription

- (NSString*) placeDescription
readwritenonatomicstrong

A description of the place, displayed on the map. To hide the text, use an empty string.

◆ coordinate

- (SYGeoCoordinate*) coordinate
readnonatomicassign

Map coordinates of the place.

◆ categoryId

- (NSString*) categoryId
readnonatomicassign

A category identifier the place belongs to.


The documentation for this class was generated from the following file: