pieterv / react-googlemaps

A declarative React interface to Google Maps
MIT License
226 stars 68 forks source link

server-side rendering #24

Open joernroeder opened 9 years ago

joernroeder commented 9 years ago

Hey, i'm currently just playing around, and looked over the source. I saw that you're referencing the window object at some points. As far as i checked it out this will throw an Error and makes server side rendering impossible. Do you have any plan to support React.renderToString aka. server-side rendering ?

Thanks in advance!

seanpharvey commented 9 years ago

I had the same challenge. This component is a super user friendly component for client-side, but when you're doing isomorphic rendering it's not quite ready for prime time.

You might want to check out https://github.com/matnel/react-maps. Implemented server and client-side together with no issues.

ivosabev commented 8 years ago

Any movement on this issue?

joernroeder commented 8 years ago

@ivosabev i've ended up using https://github.com/MicheleBertoli/react-gmaps