sinomap icon indicating copy to clipboard operation
sinomap copied to clipboard

Instance API design

Open doodlewind opened this issue 7 years ago • 1 comments

For now we can only get new Sinomap instances, without public methods updating them. Imaging some of them:

  • sinomap.update() updates map config, e.g., background color or size.
  • sinomap.destroy() removes the map.

To dynamically update data, for now we use layers. Still looking for approaches combining layers API with sinomap instance method. Any ideas?

doodlewind avatar Mar 23 '18 01:03 doodlewind

API manipulating layers, .e.g., addLayer, removeLayer can also be considered.

doodlewind avatar Mar 23 '18 01:03 doodlewind