File tree 3 files changed +20
-12
lines changed
src/main/java/io/github/makbn/jlmap/model
3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public boolean equals(Object o) {
60
60
* @return Returns true if the given {{@link JLLatLng}} point is at the same position (within a small margin of error).
61
61
* The margin of error can be overridden by setting maxMargin.
62
62
*/
63
- public boolean equals (Object o , int maxMargin ) {
63
+ public boolean equals (Object o , float maxMargin ) {
64
64
if (this == o ) return true ;
65
65
if (o == null || getClass () != o .getClass ()) return false ;
66
66
JLLatLng latLng = (JLLatLng ) o ;
Original file line number Diff line number Diff line change 1
1
package io .github .makbn .jlmap .model ;
2
2
3
3
4
- import lombok .*;
4
+ import io .github .makbn .jlmap .listener .OnJLObjectActionListener ;
5
+ import lombok .AllArgsConstructor ;
6
+ import lombok .Builder ;
7
+ import lombok .Data ;
8
+ import lombok .EqualsAndHashCode ;
5
9
6
10
/**
7
11
* JLMarker is used to display clickable/draggable icons on the map!
12
+ *
8
13
* @author Mehdi Akbarian Rastaghi (@makbn)
9
14
*/
10
- @ Getter
11
- @ Setter
12
- @ AllArgsConstructor
15
+ @ Data
13
16
@ Builder
14
- @ ToString
17
+ @ AllArgsConstructor
18
+ @ EqualsAndHashCode (callSuper = true )
15
19
public class JLMarker extends JLObject <JLMarker > {
16
20
/**
17
21
* id of object! this is an internal id for JLMap Application and not related to Leaflet!
@@ -30,10 +34,10 @@ public class JLMarker extends JLObject<JLMarker> {
30
34
@ Override
31
35
public void update (Object ... params ) {
32
36
super .update (params );
33
- if (params != null && params .length > 0 ) {
34
- if ( String .valueOf (params [0 ]).equals ("moveend" ) && params [ 1 ] != null ) {
35
- latLng = ( JLLatLng ) params [1 ];
36
- }
37
+ if (params != null && params .length > 0
38
+ && String .valueOf (params [0 ]).equals (OnJLObjectActionListener . Action . MOVE_END . getJsEventName ())
39
+ && params [1 ] != null ) {
40
+ latLng = ( JLLatLng ) params [ 1 ];
37
41
}
38
42
}
39
43
}
Original file line number Diff line number Diff line change 1
1
package io .github .makbn .jlmap .model ;
2
2
3
+ import jdk .jshell .spi .ExecutionControl ;
4
+
3
5
/**
4
6
* @author Mehdi Akbarian Rastaghi (@makbn)
5
7
*/
6
- class JLSvg {
7
-
8
+ public class JLSvg {
9
+ public JLSvg () throws ExecutionControl .NotImplementedException {
10
+ throw new ExecutionControl .NotImplementedException ("SVG is not implemented!" );
11
+ }
8
12
}
You can’t perform that action at this time.
0 commit comments