note11g / flutter_naver_map

Naver Mobile Dynamic Map SDK for Flutter (unofficial)
BSD 3-Clause "New" or "Revised" License
143 stars 69 forks source link

Map is not functioning only showing default map #180

Closed Safiullah2000 closed 9 months ago

Safiullah2000 commented 9 months ago

I have implement naver map with flutter naver map plugin 1.1.2. The problem is i have changed map type and also add initial camera position to busan but map still starts on seoul city which is default why it's not working
naver

note11g commented 9 months ago

@Safiullah2000 Can you add a reproduction step?

Safiullah2000 commented 9 months ago

Step 1: Register the Application in the Naver map console

Step 2: Adding dependency by following line:

        flutter pub add flutter_naver_map

Step 3: Add the following lines in AndroidManifest.xml

    <meta-data   // Not showing in a comment that's why type this
        android:name="com.naver.maps.map.CLIENT_ID"
        android:value="YOUR-CLIENT-ID"/>

    <meta-data  // Not showing in a comment that's why type this
        android:name="com.naver.maps.map.CLIENT_SECRET"
        android:value="YOUR-CLIENT-SECRET-ID"/>/"

Step 4: Add this line in main.dart:

     WidgetsFlutterBinding.ensureInitialized();
      await NaverMapSdk.instance.initialize(
                 clientId: ''YOUR-CLIENT-ID",
                 onAuthFailed: (error) {
                        print('Auth failed: $error');
                  });

Step 5: This is my Naver Map screen code

nav

My flutter version is 3.13.9

Tell me if i made a mistake i will be very thankful to you

note11g commented 9 months ago

@Safiullah2000 Please check this sample. clone and run please. https://github.com/note11g/flutter_naver_map_pure_example/tree/sample/%23180

Safiullah2000 commented 9 months ago

Issue is resolved thanks @note11g there is an error from my side

note11g commented 9 months ago

@Safiullah2000 I'm so glad it's been resolved! Please use it well, and have a nice day :) Thank you!