yoonjaepark / flutter_kakao_map Goto Github PK
View Code? Open in Web Editor NEWKakao Maps This is a Flutter plugin that provides a widget.
License: BSD 2-Clause "Simplified" License
Kakao Maps This is a Flutter plugin that provides a widget.
License: BSD 2-Clause "Simplified" License
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
# -------------------------------------------
The snippet of InfoWindow is not shown.
And, when we touch the InfoWindow on the map, onTap callback function is not called.
최초 초기화 시킨 좌표로 지도 표시까지는 구현했습니다.
여기서 주소 검색하여 새 좌표까지 얻어냈는데
새로운 좌표로 지도 표시하려면 어떻게 해야 하나요?
setState(() {
_kInitialPosition =
CameraPosition(target: MapPoint(newLat, newLng), zoom: 1);
});
이런식으로 이니셜포지션 값을 변경해주어도 지도가 바뀌지 않습니다
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:
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
여기 https://apis.map.kakao.com/web/sample/addr2coord/ 에서처럼 주소로 장소를 표시하는 기능은 없을까요?
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
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:)
#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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.