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

Not rendering maps #9

Open
lakshmiaswath opened this issue Jul 13, 2017 · 5 comments
Open

Not rendering maps #9

lakshmiaswath opened this issue Jul 13, 2017 · 5 comments
Assignees

Comments

@lakshmiaswath
Copy link

lakshmiaswath commented Jul 13, 2017

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
Copy link
Owner

Josh-ES commented Jul 14, 2017

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 Josh-ES self-assigned this Jul 14, 2017
@Josh-ES
Copy link
Owner

Josh-ES commented Jul 14, 2017

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

@lakshmiaswath
Copy link
Author

lakshmiaswath commented Jul 17, 2017

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
Copy link

arvenz0210 commented Jul 18, 2017

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
Copy link
Owner

Josh-ES commented Jul 18, 2017

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

tonyraoul pushed a commit to tonyraoul/react-here-maps that referenced this issue May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants