Topic:   How to solve Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'
Oct 29, 2020 09:10 2 Replies 791 Views SHIVA
L.Control.Form = L.Control.extend({
			onAdd: function(map) {
			  var el = L.DomUtil.create('form','range-field my-4 w-25');
		  
			  el.appendChild("");

			  return el;
			},
		  
			onRemove: function(map) {
			  // Nothing to do here
			}
		  });
		  		  
		  L.control.form = function(opts) {
			return new L.Control.Form(opts);
		  }
		  L.control.form({
			position: 'bottomleft'
		  }).addTo(maps);
Prev Next
Topic Replies (2)
  1. 1
    idnkx user

    ANANYA

    input=L.DomUtil.create('input','multi-range');
    input.type="range";
    input.id="multi1" ;
    el.appendChild(input);

    1
    idnkx user

    PARTH

    Try use something like this -

    input=L.DomUtil.create('input','multi-range');
    input.type="range";
    input.id="multi1" ;
    el.appendChild(input);

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect