Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmaintained project? I'm upgrading it! #43

Open
8 of 12 tasks
SirMcPotato opened this issue Dec 23, 2018 · 20 comments
Open
8 of 12 tasks

Unmaintained project? I'm upgrading it! #43

SirMcPotato opened this issue Dec 23, 2018 · 20 comments

Comments

@SirMcPotato
Copy link

SirMcPotato commented Dec 23, 2018

Hello contributors,

First of all, let me congratulate you for your work on this project! Even if you make proof of modesty by saying it's just a simple wrapper, it remains a great react library that make using OpenLayers with React a real pleasure by its concise syntax!

I'm actually in the need in this exact tool, but can you imagine my face when I tried to add it to my brand new React + Typescript project? Yes, like the pain when you strikes your pinky on a door.
Back to the Github repo, I saw that the last commit was two years ago. Damn, I understand now why it won't work.

But I really want to use it, so I forked it and I'm doing a general upgrade.
Here's my todo-list :

Does @allenhwkim or someone else still manage react-openlayers?
I want the original repo staying up to date, so I'll send a PR once I estimate the refactor done, hoping it'll be accepted!
In the case I got no response to the PR, I'm thinking about a complete overhaul once OpenLayers 5 is typescript ready, on a brand new dedicated project, but I hope not!

Thanks for reading!

@allenhwkim
Copy link
Owner

allenhwkim commented Dec 24, 2018

@SirMcPotato please do. I do keep this repo. open because there are still many users who think this is useful, but not maintaining actively because React/OpenLayers is not my daily job.
As soon as I find you are capable of maintaining it, I will add you as the maintainer.
Please send me your npm user id, so that you can publish it too.

@SirMcPotato
Copy link
Author

Hi @allenhwkim, glad you responded, I wasn't sure if you remained active on this repo!
I'm very pleased by your answer, giving me the opportunity to take the hand on it. It is with honor that I accept your proposition.

Actually, I've achieved all the major milestones set for this refactoring.
So I've deployed my fork on npm for testing integration as a 3rd party package into my various React projects in order to ensure that my PR is fully stable and suitable for production. I'm having some import issues, but I'm getting a bit closer each days.

Here's the npm test package link for reference : https://www.npmjs.com/package/@sirmcpotato/react-openlayers
Please note this version is actually a mess, imports are bugged and there's many files that do not belong here. Anyway, this forked package will be deleted once PR accepted and deployed on the main repos, so I don't really care for tidiness at the moment ;)

@SirMcPotato
Copy link
Author

SirMcPotato commented Jan 2, 2019

Heya, happy new year! 🎉

Here's some updates on the progress of the upgrade.
Actually most of the work is complete. I was working on publication tests and integration as a 3rd party library, but some definitions on @types/openlayers & @types/ol were missing, which is blocking right now.
In order to fix this, I've submited the following PR : DefinitelyTyped/DefinitelyTyped#31708
I'm awaiting for a review and merge of the PR, so I can continue my work on react-openlayers, tidy it up and finally propose a PR for merging!

@Pansarvarg
Copy link

Hi @SirMcPotato!

Great to see this project being worked on! Do you have any updates on how work is progressing?

@cdc-dpbrown
Copy link

Hello,

I'm in the process of switching from ESRI to this for Epi Info Maps. (https://www.cdc.gov/epiinfo/index.html) Would you recommend me forking from here?

Thank you,
David Brown

@SirMcPotato
Copy link
Author

SirMcPotato commented Jan 28, 2019

Hi @Pansarvarg!
Actually the port is mostly done, and I'm working on the building toolchain. I had issues using Webpack to produce a working UMD package, which was fixed using Rollup. However, now the examples build is broken and i'm trying to fix this!
On the last weeks, I had to slow down a bit on this project for professional reasons, now things came back to a normal pace I can finish fixing this!

Hello @cdc-dpbrown.
Actually the package I'm working on is not stable, and most of the changes are not yet available online.
I would recommend you to wait a bit for a stable version, that I'll issue in a couple of weeks.
Of course, I'll will let you know here once this is published!

Thanks for your patience.

@cdc-dpbrown
Copy link

Hello SirMcPotato,

Thank you. I'll gladly go work on something else and circle back to react-openlayers. Thank you.

David Brown

@meyercm
Copy link

meyercm commented Feb 26, 2019

@SirMcPotato Are there any tasks that you can carve off for someone else to pick up? Anything you need assistance with? I'd like to help get this to a releasable state, so I can use it with an upcoming project.

@Kampe
Copy link

Kampe commented Mar 15, 2019

Same, push your current state :)

@dmrobotix
Copy link

Any updates? Would love to try this out!

@jonorogers
Copy link

@SirMcPotato , any updates? Would also love to help you finish this if you can push where you're at.

@CharanRoot
Copy link

@SirMcPotato , any updates. if you need any help. let me know i can help you.

@jwgmeligmeyling
Copy link
Contributor

Im currently using this fork: https://github.com/lobaro/react-openlayers

@wuhland
Copy link

wuhland commented Jul 31, 2019

@SirMcPotato Any update on this project?

@oehm-smith
Copy link

oehm-smith commented Oct 15, 2019

I've worked through a number of forks of this and none seem to work. Bummer! Well I guess its time to check out https://www.npmjs.com/package/react-leaflet and forget openlayers.

Actually https://github.com/AlexJPotter/react-openlayers seems to start (and then show something) without errors.

Mmmm, it runs as webpack-dev-server (ie. npm start) but it doesnt build.

https://github.com/lobaro/react-openlayers is working as reported (however it didn't at first for me - I must have been doing something wacky before).

A PR should be done for this back to the parent project (allenhwkim). Especially given that this project is listed as the React library (https://openlayers.org/3rd-party/).

(Apologies if anyone has been reading this note as it evolved).

@oehm-smith
Copy link

oehm-smith commented Oct 15, 2019

What needs to be done to just import it? The example include turns it inside out with the app sitting inside the built code.

Simply copying the entire project in to your app's node_modules seems to work.

cd react-openlayers
npm run build:app

cd ../myapp
cp -r ../react-openlayers ./node_modules

Edit App.js and add

import {Map} from 'react-openlayers'

I'll see how far I get.

Yep, after including the sample code from the README and fixing for missing values, the map appears.

Now we're cooking!

@jwgmeligmeyling
Copy link
Contributor

jwgmeligmeyling commented Oct 15, 2019

@oehm-smith Have you tried https://github.com/lobaro/react-openlayers or https://github.com/ealgis/react-openlayers ? I am running that fork in production successfully. It includes a fix of mine that is required to make the module work with minified code.

@oehm-smith
Copy link

Yeah thanks @jwgmeligmeyling I discovered it works. On-wards and upwards!

@andrew-linck
Copy link

@allenhwkim Are we able to use the package that @SirMcPotato uploaded to npm?

@lobmarib
Copy link

lobmarib commented Mar 26, 2020

@SirMcPotato, did you give up on this? I give it a try on your project and it seems to have the same height issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests