tileWidth and tileHeight are read-only in events too, you can't change them. You can probably prepare a bunch of tilemap templates with different tile sizes instead.
mapWidth and mapHeight are calculated from the tilemap's width+height. Say, if the tile size is 16 and the tilemap width is 1600, then the mapWidth expression will return 100.