Knowledge Drop

Why do I get a "Can't read map layer "file file_name.topojson" from project "project_name"."


Userlevel 1

Last tested: Dec 17, 2019
 

This is usually caused by not including the entire file path in the file parameter of a map_layer.

For files that are in folders, the entire path needs to be included.

map_layer: layer_name {

file: "/file_path/file_name.topojson"

format: topojson

property_key: key_value

}

 

For files that are not in folders, a forward slash still needs to be in front of the filename:

map_layer: layer_name {

file: "/file_name.topojson"

format: topojson

property_key: key_value

}

 

This content is subject to limited support.                

 

 


0 replies

Be the first to reply!

Reply