Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
118fe430
Commit
118fe430
authored
Sep 30, 2018
by
Evan W. Patton
Committed by
Susan Rati Lane
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force MockCircle default position to (0, 0)
Fixes #1379 Change-Id: I2682c4b12806e13a78524fce2d47293d46123f93
parent
c8199a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockCircle.java
...pinventor/client/editor/simple/components/MockCircle.java
+4
-1
No files found.
appinventor/appengine/src/com/google/appinventor/client/editor/simple/components/MockCircle.java
View file @
118fe430
...
...
@@ -134,7 +134,10 @@ public class MockCircle extends MockMapFeatureBaseWithFill {
// JSNI Methods
private
native
void
initCircle
()
/*-{
this.@com.google.appinventor.client.editor.simple.components.MockMapFeatureBase::feature =
top.L.circle([], @com.google.appinventor.components.common.ComponentConstants::CIRCLE_PREFERRED_RADIUS, {
// Fix for https://github.com/mit-cml/appinventor-sources/issues/1379: Initial coordinate
// should match default property values for Latitude and Longitude (i.e., (0, 0)) otherwise
// Leaflet throws an exception when we later add the Circle to the Map.
top.L.circle([0, 0], @com.google.appinventor.components.common.ComponentConstants::CIRCLE_PREFERRED_RADIUS, {
className: 'leaflet-interactive',
weight: 1,
color: '#000',
...
...
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