FH-Potsdam / shifted-maps

Shifted Maps visualizes personal movement data as a network of map extracts showing visited places.
http://shifted-maps.com
GNU General Public License v3.0
66 stars 10 forks source link

resolved #54

Closed GISScience closed 5 years ago

GISScience commented 5 years ago

i have created a plugin

lennerd commented 5 years ago

I'm not sure I can follow. Did you create a fork of Shifted Maps or do you try to use it as a library? I also have absolutely no experience with elastic/kibana, but the script paths inside the package.json pointing to a directory outside the root folder look strange to me, TBH.

Fyi: Shifted Maps is primary a standalone website built with next. For example this means that there is no built in way to built Shifted Maps source files for using it in another project right out of the box. The current built process is solely for creating a Node based web server to be deployed somewhere. Typescript is also used via a plugin called next-typescript. I never compiled the source code with the typescript CLI directly, so I'm cannot guarantee it will work out of the box either.

Either way looking at the error message you posted it looks like you're trying to have different typings with the same type definition (s. Duplicate identifier). There are also some problems with missing modules (s. not found).

Both errors seem to have nothing to do with Shifted Maps source code, so I would like to close this issue for now. Feel free to post more information if you feel this errors correspond to the Shifted Maps source code (pages, hooks, utils and components) directly.

lennerd commented 5 years ago

What do you mean with "compile it offline"? Typescript always needs to be compiled to pure javascript before beeing used inside the browser. There is no way around it.

You can try to remove alle next related code and use the components from Shifted Maps directly, for example the map or visualization components. Do you have any examples from your code using React components from this library? Or maybe more context and information on how you plan to use Shifted Maps or parts of it in your own application?

lennerd commented 5 years ago

It‘s still very hard to follow.

Can you edit your post and wrap your code examples in three backticks (code blocks in Markdown)? I already edited your first post to be more readable. So you can find an example there.

It would also help a lot if you could provide a repository with your code and all the necessary steps to reproduce your errors.