Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
S
subastasAEAT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Coruña Hacks
2019
subastasAEAT
Commits
12941a0e
Commit
12941a0e
authored
May 11, 2019
by
Pablo García Saleta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mapa incorporado
parent
e5f0a4d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
40 deletions
+6
-40
front/subastasAEAT/components/Map.js
front/subastasAEAT/components/Map.js
+1
-40
front/subastasAEAT/components/card/Bien.js
front/subastasAEAT/components/card/Bien.js
+5
-0
No files found.
front/subastasAEAT/components/Map.js
View file @
12941a0e
...
...
@@ -27,9 +27,6 @@ function createMarker(modifier = 1) {
const
MARKERS
=
[
createMarker
(),
createMarker
(
2
),
createMarker
(
3
),
createMarker
(
4
),
];
const
DEFAULT_PADDING
=
{
top
:
40
,
right
:
40
,
bottom
:
40
,
left
:
40
};
...
...
@@ -84,32 +81,6 @@ class FitToCoordinates extends React.Component {
/
>
))}
<
/MapView
>
<
View
style
=
{
styles
.
buttonContainer
}
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
fitPadding
()}
style
=
{[
styles
.
bubble
,
styles
.
button
]}
>
<
Text
>
Fit
Bottom
Two
Markers
with
Padding
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
fitBottomTwoMarkers
()}
style
=
{[
styles
.
bubble
,
styles
.
button
]}
>
<
Text
>
Fit
Bottom
Two
Markers
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
fitAllMarkers
()}
style
=
{[
styles
.
bubble
,
styles
.
button
]}
>
<
Text
>
Fit
All
Markers
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
this
.
logFrames
()}
style
=
{[
styles
.
bubble
,
styles
.
button
]}
>
<
Text
>
Log
markers
frames
<
/Text
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
);
}
...
...
@@ -123,6 +94,7 @@ const styles = StyleSheet.create({
},
map
:
{
...
StyleSheet
.
absoluteFillObject
,
height
:
200
,
},
bubble
:
{
backgroundColor
:
'
rgba(255,255,255,0.7)
'
,
...
...
@@ -130,17 +102,6 @@ const styles = StyleSheet.create({
paddingVertical
:
12
,
borderRadius
:
20
,
},
button
:
{
marginTop
:
12
,
paddingHorizontal
:
12
,
alignItems
:
'
center
'
,
marginHorizontal
:
10
,
},
buttonContainer
:
{
flexDirection
:
'
column
'
,
marginVertical
:
20
,
backgroundColor
:
'
transparent
'
,
},
});
export
default
FitToCoordinates
;
front/subastasAEAT/components/card/Bien.js
View file @
12941a0e
...
...
@@ -10,6 +10,7 @@ import {
}
from
"
react-native
"
;
import
{
Container
,
Badge
,
Header
,
Content
,
Card
,
CardItem
,
Thumbnail
,
Text
,
Button
,
Icon
,
Left
,
Body
,
Right
}
from
'
native-base
'
;
import
ReadMore
from
'
react-native-read-more-text
'
;
import
Map
from
"
../Map
"
;
export
default
class
Bien
extends
Component
{
...
...
@@ -49,6 +50,10 @@ export default class Bien extends Component{
<
Text
>
<
Text
>
{
this
.
props
.
bien
.
datos
.
direccion
}
{
this
.
props
.
bien
.
datos
.
codigo_postal
}
<
/Text
>
<
/Text
>
<
/CardItem
>
<
CardItem
style
=
{{
height
:
275
}}
>
<
Map
/>
<
/CardItem
>
<
CardItem
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment