Giter Site home page Giter Site logo

yandex-map-react-examples's Introduction

Run example

npm install
npm run build

Open index.html

yandex-map-react-examples's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yandex-map-react-examples's Issues

Add custom controls example

Hi Alexey,

Thanks a lot for your work on YMaps for React โ€“ this is potentially a really useful thing! I've been trying to customise the controls of the map, but did not figure out what's expected as a parameter. If this is a collection of the real controls, won't this affect the performance of the component? What would you recommend for the cases when parent control's render() method is called quite often?

It would be great if you could provide a small example of how to remove a couple of default buttons. A hint on how to add a custom control will be also handy.

Cheers!

Styles don't work on Map component.

<Map onAPIAvailable={function () { console.log('API loaded'); }} center={[51.70858418, 94.43314205]} zoom={17} style={{
                width: '100%',
                height: '200px'
            }}>
                <Marker lat={this.props.lat} lon={this.props.lon} />
 </Map>

Used style prop. How can I style this Map component? I mean hardcoded width and height is not an option for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.