Josh-ES / react-here-maps

React.js HERE Maps component
MIT License
35 stars 25 forks source link

Not rendering maps #9

Open lakshmiaswath opened 7 years ago

lakshmiaswath commented 7 years ago

I am trying your react-here-maps for my new project. The map doesn't get rendered properly.

import React, { Component } from 'react';
import HEREMap from 'react-here-maps';
import logo from './logo.svg';
import './App.css';

class App extends Component {
  render() {
    return (

      <div className="App">
        <div className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h2>Welcome to React</h2>
        </div>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
        <article>
          <HEREMap 
            appId={“app_id”}
            appCode={“app_code”}
            center={{ lat: 51, lng: 0 }}
            zoom={14}
            secure={true}
          />
        </article>
      </div>
    );
  }
}

export default App;

Attached how my component looks like. Also attaching image how it looks

screen shot 2017-07-13 at 3 21 34 pm
Josh-ES commented 7 years ago

Please note that you can embed code in a comment on GitHub by using back quotes, and syntax highlighting is supported. I've edited your post above, you can embed code like:

```js (code here) ```

Josh-ES commented 7 years ago

I can't reproduce your problem - are you setting the app ID and app code correctly in the component?

lakshmiaswath commented 7 years ago

Yes i'm setting the appId and appCode.So, this is how we pass right ?

  <HEREMap 
            appId={“7f7oMXnFEgUINPBJLRBH”}
            appCode={“jnaw70Jmxhgh_BBrXn1a5”}
            center={{ lat: 51, lng: 0 }}
            zoom={14}
            secure={true}
          />

Am i missing something ?

arvenz0210 commented 7 years ago

Hi, I have the same problem. But it does not show the map. I use the "getting started" code. my credentials so ok

Josh-ES commented 7 years ago

@arvenz0210 If the map isn't showing at all for you, would you mind opening up a different issue for me? I could do with a screenshot either way, though. I think (hope!) I should be able to solve issues where the map doesn't show at all a fair bit easier than the kind of graphical glitch reported here.