(self, layer_name: str, zoom_level: int)
return {
            "tiles": [],
            "source": self._source.name(),
            "scheme": self._source.scheme(),
            "layer": layer_name,
            "zoom_level": zoom_level,
            "type": "FeatureCollection",
            "crs": crs,
            "features": [],
        }
Returns an empty GeoJSON FeatureCollection with the coordinate reference system (crs) set to EPSG3857
Returns an empty GeoJSON FeatureCollection with the coordinate reference system (crs) set to EPSG3857
Returns an empty GeoJSON FeatureCollection with the coordinate reference system ( crs ) set to EPSG3857
def _get_empty_feature_collection(self, layer_name: str, zoom_level: int) -> dict:
        """
        Returns an empty GeoJSON FeatureCollection with the coordinate reference system (crs) set to EPSG3857
        """
        # todo: when improving CRS handling: the correct CRS of the source has to be set here

        source_crs = self._source.crs()
        if source_crs:
            epsg_id = get_code_from_epsg(source_crs)
        else:
            epsg_id = 3857

        crs = {"type": "name", "properties": {"name": "urn:ogc:def:crs:EPSG::{}".format(epsg_id)}}

        return {
            "tiles": [],
            "source": self._source.name(),
            "scheme": self._source.scheme(),
            "layer": layer_name,
            "zoom_level": zoom_level,
            "type": "FeatureCollection",
            "crs": crs,
            "features": [],
        }
def _get_empty_feature_collection ( self , layer_name : str , zoom_level : int ) -> dict : # todo: when improving CRS handling: the correct CRS of the source has to be set here source_crs = self . _source . crs ( ) if source_crs : epsg_id = get_code_from_epsg ( source_crs ) else : epsg_id = 3857 crs = { "type" : "name" , "properties" : { "name" : "urn:ogc:def:crs:EPSG::{}" . format ( epsg_id ) } } return { "tiles" : [ ] , "source" : self . _source . name ( ) , "scheme" : self . _source . scheme ( ) , "layer" : layer_name , "zoom_level" : zoom_level , "type" : "FeatureCollection" , "crs" : crs , "features" : [ ] , }