Skip to content

Commit

Permalink
调整Map的代码,可用的函数修改为prototype模式。
Browse files Browse the repository at this point in the history
  • Loading branch information
radi-ac committed Sep 25, 2016
1 parent dfbf23e commit 93495ec
Show file tree
Hide file tree
Showing 10 changed files with 567 additions and 474 deletions.
2 changes: 1 addition & 1 deletion example/all/map/layer_add_wfs.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_init.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_view_center.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_view_extent.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_view_rotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_view_zoom.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script type="text/javascript" src="../../../src/GeoBeans/Utility/Utility.js"></script>

<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
<script type="text/javascript" src="../../../src/GeoBeans/Geometry.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion example/all/map/map_zoom_by_extent.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<script type="text/javascript" src="../../../src/GeoBeans/BaseTypes/Envelope.js"></script>
<!--View-->
<script type="text/javascript" src="../../../src/GeoBeans/Render/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Viewer.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Render/Transformation.js"></script>
<script type="text/javascript" src="../../../src/GeoBeans/Renderer.js"></script>
<!--Geometry-->
Expand Down
4 changes: 2 additions & 2 deletions src/GeoBeans/BaseTypes/Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ GeoBeans.Color = GeoBeans.Class({
b : null,
a : null,

initialize = function(){
initialize : function(){
this.r = parseInt(Math.random()*255);
this.g = parseInt(Math.random()*255);
this.b = parseInt(Math.random()*255);
this.a = Math.random();
}
}
});

/**
* [set description]
Expand Down
2 changes: 1 addition & 1 deletion src/GeoBeans/Layer/FeatureLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ GeoBeans.Layer.FeatureLayer = GeoBeans.Class(GeoBeans.Layer, {
},

addFeature : function(feature){
if(isValid(feature){
if(isValid(feature)){
this.features.push(feature);
}
},
Expand Down
Loading

0 comments on commit 93495ec

Please sign in to comment.