react-here-maps icon indicating copy to clipboard operation
react-here-maps copied to clipboard

Not rendering maps

Open lakshmiaswath opened this issue 7 years ago • 5 comments

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

lakshmiaswath avatar Jul 13 '17 09:07 lakshmiaswath

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 avatar Jul 14 '17 19:07 Josh-ES

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

Josh-ES avatar Jul 14 '17 20:07 Josh-ES

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 ?

lakshmiaswath avatar Jul 17 '17 05:07 lakshmiaswath

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

arvenz0210 avatar Jul 18 '17 14:07 arvenz0210

@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.

Josh-ES avatar Jul 18 '17 14:07 Josh-ES