new MapOqt(idopt, latnullable, lngnullable, zoomopt, map_styleopt, draggingopt)
Componente que renderiza un mapa react-leaflet
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string |
<optional> |
"map" | Identificador único del mapa |
lat |
string |
<nullable> |
Latitud inicial del mapa |
|
lng |
string |
<nullable> |
Longitud inicial del mapa |
|
zoom |
string |
<optional> |
"13" | Zoom inicial del mapa |
map_style |
string |
<optional> |
'{"width":"100%", "height": 500}' | Estilos en formato react que se aplican al div contenedor del mapa |
dragging |
"true" | "false" |
<optional> |
"true" | Establece si se puede arrastrar el mapa a otra ubicación Es util cuando se quiere mostrar un mapa estático, o cuando se quiere hacer seguimiento de la ubicación del dispositivo |
- Source:
Example
<map lat="38.2111" lng="54.0121" zoom="13">
<map_marker name="marca" lat="38.2111" lng="54.0121" text="una marca" readonly="false" use_change="true"></map_marker>
</map>