File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -204,21 +204,14 @@ export class FieldGisEditMap extends Component {
204
204
this . map . on ( "draw.create" , updateArea ) ;
205
205
this . map . on ( "draw.update" , updateArea ) ;
206
206
207
- const model = this . props . record . _config . resModel ;
208
- const url = `${ this . webBaseUrl } /web/image?model=${ model } &id=${ this . props . record . _config . resId } &field=geo_img_file` ;
207
+ const url = `/spp_base_gis/static/src/images/laos_farm.png` ;
209
208
210
209
this . map . on ( "click" , `${ this . sourceId } -polygon-layerid` , ( e ) => {
211
210
new maptilersdk . Popup ( )
212
211
. setLngLat ( e . lngLat )
213
212
. setHTML ( `<img src="${ url } " height="200" width="300" alt="Placeholder Image">` )
214
213
. addTo ( this . map ) ;
215
214
} ) ;
216
- this . map . on ( "click" , `${ this . sourceId } -point-layerid` , ( e ) => {
217
- new maptilersdk . Popup ( )
218
- . setLngLat ( e . lngLat )
219
- . setHTML ( `<img src="${ url } " height="200" width="300" alt="Placeholder Image">` )
220
- . addTo ( this . map ) ;
221
- } ) ;
222
215
}
223
216
224
217
addDrawInteractionStyle ( ) {
You can’t perform that action at this time.
0 commit comments