Comments (5)
Thanks for using it. This should work.
(markerDrag_end)="myFunc()"
Interesting! (markerDrag) works but (marderDrag_end) does not. I need to investigate more.
from map.
it wasn't "drag_end", but "dragend". Fixed it and released it with 0.2.1. Please test
from map.
Thanks for reply ,
It is not working, dragend event is not calling .
<ng2-map [center]="mapCenter" zoom="4">
<marker [position]="mapCenter" [draggable]="true" (dragend)="clicked($event)">
Error console ,
TypeError: Cannot read property 'open' of undefined
at Ng2MapComponent.openInfoWindow (http://localhost:4200/vendor/ng2-map/dist/components/ng2-map.component.js:103:29)
at HomeComponent.clicked (http://localhost:4200/app/home/home.component.js:35:33)
from map.
At least, It works with this plunker. I have updated plunker
http://plnkr.co/edit/9AI9dg?p=preview.
I think you want to call openInfoWindow when dragend. I have also tested with openInfoWindow which worked fine. The event name is markerDragend
and usage is markerDragEnd(myFund($event))
from map.
Thanks its working for me .
from map.
Related Issues (20)
- Marker Limit? - Error finding location for ... HOT 3
- For development purposes only HOT 1
- How to achieve navigation for a given route?
- How to only refresh the markers on map without refreshing the whole map..?
- Problem with adding a new component with svg HOT 2
- ngui-map, error finding the location from 28.577282, 77.3264023 HOT 2
- map.setCenter doesn't do anything HOT 3
- Map doesn't respect "aria-hidden="true"
- Custom labels on Polygon or Custom labels on maps
- Error: fitBounds: latLngBounds must be of type LatLngBounds.
- mapClick and click events works like they set with useCapture on touch screen
- Cant update my map with my gps data via a mqtt channel, it complains on this "js?v=3.exp&key=&callback=initialize:63 InvalidValueError: at index 0: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value"
- Autocomplete not initialising on route change.
- Is this repo being maintained anymore? HOT 1
- How to disable "Know your location" popup?
- How to disable moving to your current location on loading?
- Source Code vs. NPM
- Error: node_modules/@ngui/map/ngui-map.module.d.ts:4:44 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).
- You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. HOT 1
- How To Style Marker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from map.