mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added debug info
This commit is contained in:
parent
37a7a48131
commit
8225bc274a
4 changed files with 7 additions and 4 deletions
|
@ -77,10 +77,10 @@ class Component extends LayerGroup {
|
||||||
|
|
||||||
createMiddleMarker = (latlng: LatLngLiteral, angle: number, distance: number): Marker => marker(latlng, {
|
createMiddleMarker = (latlng: LatLngLiteral, angle: number, distance: number): Marker => marker(latlng, {
|
||||||
draggable: false,
|
draggable: false,
|
||||||
interactive: false,
|
interactive: true,
|
||||||
icon: divIcon({
|
icon: divIcon({
|
||||||
html: `
|
html: `
|
||||||
<div class="leaflet-km-dist" style="transform: translate(0, 0) rotate(${allwaysPositiveAngleDeg(angle)}deg);">
|
<div class="leaflet-km-dist" style="transform: translate(-50%, -50%) rotate(${allwaysPositiveAngleDeg(angle)}deg);">
|
||||||
${distance}
|
${distance}
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
|
|
|
@ -55,6 +55,8 @@ export class Sticker {
|
||||||
this.deleteSticker = deleteSticker;
|
this.deleteSticker = deleteSticker;
|
||||||
this.lockMapClicks = lockMapClicks;
|
this.lockMapClicks = lockMapClicks;
|
||||||
|
|
||||||
|
console.log({ set, sticker });
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -121,8 +121,8 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 50%;
|
||||||
left: -4px;
|
left: 50%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,6 +143,7 @@ module.exports = () => {
|
||||||
devServer: {
|
devServer: {
|
||||||
historyApiFallback: true,
|
historyApiFallback: true,
|
||||||
port: 8000,
|
port: 8000,
|
||||||
|
host: '192.168.88.40',
|
||||||
contentBase: 'dist',
|
contentBase: 'dist',
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
hot: true,
|
hot: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue