Hi, I’m trying to integrate a map into a screen following this sample:
sample
but I can’t figure out what the problem is
When I fetch external resources
this error appears:
TIA
Hi, I’m trying to integrate a map into a screen following this sample:
sample
but I can’t figure out what the problem is
When I fetch external resources
this error appears:
TIA
Hi German,
Normally the XSD is found by IDE in dependencies. Did you add the Maps add-on to your project?
Hi Konstantin.
Sorry I didn’t , what a sad forgetfulness.
But despite that, I tried to embed a Leafletmap into a Jmix screen using jsComponent, but I can’t get the map to display.
I tried to draw a Polyline and while it draws correctly, the underlying map is not visible.
I do not know what I’m doing wrong
Application output:
The screen XML (lote-edit.xml):
The JS connector (leaflet-connector.js):
The .java controller (LoteEdit.java):
I appreciate anyone who can give me a clue.
Thank you very much!
Germán Turriziani
Missed to add the layer after creating the map… sorry
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(mapa);