jiggag / react-native-kakao-maps

MIT License
20 stars 10 forks source link

Can't load map on android #36

Closed phuongit0301 closed 1 year ago

phuongit0301 commented 1 year ago

Hi guys Im using version 0.0.10. When I run on simulator and real devices, the Map can't load, it just show marker like image below. Could you help me about this?

jiggag commented 1 year ago
<KakaoMapView
  markerList={[
      {
        lat: 37.59523,
        lng: 127.08600,
        markerName: 'marker'
      },
      {
        lat: 37.59523,
        lng: 127.08705,
        markerName: 'marker2'
      },
  ]}
  width={300}
  height={500}
  centerPoint={{
      lat: 37.59523,
      lng: 127.08600,
  }}
/>

can you try this example 🤔 i think centerPoint is wrong

maxtor3569 commented 1 year ago

Still same problem @jiggag

jiggag commented 1 year ago

🤔 can you show me the code??? @phuongit0301 @maxtor3569

phuongit0301 commented 1 year ago

Im following example on library @jiggag


import { KakakoMapView } from '@jiggag/react-native-kakao-maps';

return (
  <KakaoMapView
    markerImageName="customImageName" // 옵션1
    markerImageUrl="https://github.com/jiggag/react-native-kakao-maps/blob/develop/example/custom_image.png?raw=true" // 옵션2
    markerList={[
        {
          lat: 37.59523,
          lng: 127.08600,
          markerName: 'marker'
        },
        {
          lat: 37.59523,
          lng: 127.08705,
          markerName: 'marker2'
        },
    ]}
    width={300}
    height={500}
    centerPoint={{
        lat: 37.59523,
        lng: 127.08600,
    }}
    onChange={(event) => {
      // event.nativeEvent
    }}
  />
);
jiggag commented 1 year ago

🤔 @phuongit0301 where are you location? (korea, danang..?)

I think KakaoMap is only visible in korea (otherwise you will see a white screen)