angular-leaflet-directive icon indicating copy to clipboard operation
angular-leaflet-directive copied to clipboard

Update marker using input with ng-model

Open devjoca opened this issue 12 years ago • 4 comments

Hi!

I'm triying to modify an input and give this error:

"There are problems with lat-lng data, please verify your marker model".

There is a jsfiddle to explain the problem http://jsfiddle.net/4PhzC/119/

devjoca avatar Aug 15 '14 17:08 devjoca

Hi @jopereyral, you're right, that's because the input field converts the lat float value into an string, so the directive receives the new values as string and thows an error.

Maybe you can use '<input type="number" ...' or a custom directive to assure that the value you're liking to the marker get the correct type.

tombatossals avatar Aug 30 '14 06:08 tombatossals

Thanks, that was useful. :+1:

devjoca avatar Oct 02 '14 23:10 devjoca

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.

tombatossals avatar Nov 04 '15 07:11 tombatossals

Thanks, no problem.

devjoca avatar Nov 09 '15 21:11 devjoca