Hi,
I create a widget to find an adress with french ign service geocoder.
It help to write a correct adress or, from a click, it give the adress.

I need to use it to find what is near on different app with some specific information. I hope not cut and paste the simple widget and add specific stuff but i would like to add it in a place and get its result. I try to do it in dojo but it didn't work :
widget.js
define([
'dijit/_WidgetsInTemplateMixin', 'dijit/_AttachMixin','jimu/BaseWidget','../CD82_IGNRechercheAdresse/Widget'
'../'
], function (
_WidgetsInTemplateMixin, _AttachMixin, BaseWidget, CD82_IGNRechercheAdresse
) {
return declare([BaseWidget, _WidgetsInTemplateMixin, _AttachMixin], {
//Création
postCreate: function () {
//Récupère les paramètres du formulaire
this.inherited(arguments);
},
//Démarrage
startup: function () {
let w = new CD82_IGNRechercheAdresse();
w.placeAt(this.placeRecherche)
}
});
});
widget.html
<div>
<div data-dojo-attach-point="placeRecherche">
</div>
<div data-dojo-attach-point="SpecificZone">
</div>
</div>
How can I do this ?
Thanks