Giter Site home page Giter Site logo

yoonjaepark / flutter_kakao_map Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 8.0 11.7 MB

Kakao Maps This is a Flutter plugin that provides a widget.

License: BSD 2-Clause "Simplified" License

Java 22.17% Ruby 1.52% Objective-C 33.58% Dart 42.72%
dart daummap flutter kakaomap plugin

flutter_kakao_map's People

Contributors

yoonjaepark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flutter_kakao_map's Issues

Camera movement

Could you please help me understand how to move the camera to center on a marker? I have tried to move the camera using KakaoMapController.moveCamera and KakaoMapController.animateCamera, neither of which actually moved the camera.

eg:

CameraPosition newPosition = const CameraPosition(
              target: MapPoint(37.5087553, 127.0632877),
              zoom: 5,
            );

_controller.moveCamera(CameraUpdate.newCameraPosition(newPosition));

zooming doesn't seem to work either

_controller.animateCamera(CameraUpdate.zoomTo(10));

Thanks for your help

새 좌표로 지도 이동

최초 초기화 시킨 좌표로 지도 표시까지는 구현했습니다.
여기서 주소 검색하여 새 좌표까지 얻어냈는데
새로운 좌표로 지도 표시하려면 어떻게 해야 하나요?

setState(() {
_kInitialPosition =
      CameraPosition(target: MapPoint(newLat, newLng), zoom: 1);
}); 

이런식으로 이니셜포지션 값을 변경해주어도 지도가 바뀌지 않습니다

Update plugin_platform_interface dependency

The dependency on plugin_platform_interface is ^1.0.1, so it is incompatible with most plugins, which depend on "^2.X.Y". Could you please do one of the following:

  • update it to depend on "plugin_platform_interface: >=1.0.1 <3.0.0". This will keep it compatible with 1.X version and can be done as a non-breaking change.
  • update it to depend on "plugin_platform_interface: ^2.1.2" and change the name of verifyToken to verify. This will make it more compatible with future releases, but is a breaking change. (Since this plugin is a developer preview, this may be a non-issue.)

/cc @stuartmorgan

Feature Request: Routes

#Draw Polyline
I was wondering if it's possible to plot routes with this library.
Say plot and display route from point A to point B.

Pod Error on File Path

Running flutter build ios in example director results in this.

[!] Invalid `Podfile` file: no implicit conversion of nil into String.

     #  from /Users/mitchellclay/flutter_kakao_map/example/ios/Podfile:54
     #  -------------------------------------------
     #      unless File.exist?(copied_framework_path)
     >        FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
     #      end
     #  -------------------------------------------
     

how to initialise markers on map start up

Can you please help me understand how I can add markers to the map on map first showing up?

 _kakaoMap = KakaoMap(
      onMapCreated: onMapCreated,
      initialCameraPosition: _kInitialPosition,
      compassEnabled: true,
      mapType: MapType.standard,
      hdMapTileEnabled: true,
      currentLocationTrackingMode: CurrentLocationTrackingMode.trackingModeOff,
      myLocationEnabled: true,
      markers: Set<Marker>.of(markers.values),
    );
void onMapCreated(KakaoMapController controller) async {
      final MapPoint visibleRegion = await controller.getMapCenterPoint();
      setState(() {
        _controller = controller;
        _visibleRegion = visibleRegion;
        addMarkers();
      });
   }
void addMarkers(){
//create some markers here
//add markers to the Map<MarkerId, Marker> markers
...

If I call addMarkers() inside onMapCreated, the app will throw exception:

Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'void net.daum.mf.map.api.MapView.addPOIItem(net.daum.mf.map.api.MapPOIItem)' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'void net.daum.mf.map.api.MapView.addPOIItem(net.daum.mf.map.api.MapPOIItem)' on a null object reference

Seems like the MapView is not instantiated yet.

If I call addMarkers() from a button (ie: after map fully loads), it works and all the markers are added to the map. I thought that onMapCreated callback is fired after the map has fully loaded, but it seems like this is not working.

Where can I call addMarkers() to add markers automatically without triggering it from a button?

Thanks:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.