Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dist build of shapes extension

  • Loading branch information...
commit c7f6a21240f51a530a0b1f4820f07171d60da2d5 1 parent 92f226e
@mmarcon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  dist/extensions/shapes.min.js
View
2  dist/extensions/shapes.min.js
@@ -1 +1 @@
-(function(e){function a(e){return e instanceof Array?{latitude:e[0],longitude:e[1]}:e}function f(e){return e?(e.pen=e.pen||{},e.brush=e.brush||{},e.pen.strokeColor=e.pen.strokeColor||e.stroke||"#111",e.stroke="solid",e.pen.lineWidth=e.pen.lineWidth||e.thickness||1,e.brush.color=e.brush.color||e.fill,e):e}function l(e,n){e.objects.add(new t.map.Circle(a(n.center),n.radius||1e3,n.style))}function c(e,n){var r=new t.geo.BoundingBox(a(n.topLeft),a(n.bottomRight),!1);e.objects.add(new t.map.Rectangle(r,n.style))}function h(n,r){r.points=e.map(r.points,function(e){return a(e)}),n.objects.add(new t.map.Polyline(r.points,r.style))}function p(n,r){r.points=e.map(r.points,function(e){return a(e)}),n.objects.add(new t.map.Polygon(r.points,r.style))}var t,n,r,i,s,o,u;n=function(n,r){t=t||nokia.maps,u||(u=new t.map.Container,this.map.objects.add(u)),r.style=f(r.style);switch(n){case"circle":l(u,r);break;case"rectangle":c(u,r);break;case"polyline":h(u,r);break;case"polygon":p(u,r);break;default:e.error(n+" not supported")}},r=function(e){n.call(this,"circle",e)},i=function(e){n.call(this,"rectangle",e)},s=function(e){n.call(this,"polyline",e)},o=function(e){n.call(this,"polygon",e)},e.jHERE.extend("shape",n),e.jHERE.extend("circle",r),e.jHERE.extend("rectangle",i),e.jHERE.extend("polyline",s),e.jHERE.extend("polygon",o)})(jQuery);
+(function(e){function f(e){return e instanceof Array?{latitude:e[0],longitude:e[1]}:e}function l(e){return e?(e.pen=e.pen||{},e.brush=e.brush||{},e.pen.strokeColor=e.pen.strokeColor||e.stroke||"#111",e.stroke="solid",e.pen.lineWidth=e.pen.lineWidth||e.thickness||1,e.brush.color=e.brush.color||e.fill,e):e}function c(e,n){e.objects.add(new t.map.Circle(f(n.center),n.radius||1e3,n.style))}function h(e,n){var r=new t.geo.BoundingBox(f(n.topLeft),f(n.bottomRight),!1);e.objects.add(new t.map.Rectangle(r,n.style))}function p(n,r){r.points=e.map(r.points,function(e){return f(e)}),n.objects.add(new t.map.Polyline(r.points,r.style))}function d(n,r){r.points=e.map(r.points,function(e){return f(e)}),n.objects.add(new t.map.Polygon(r.points,r.style))}var t,n,r,i,s,o,u,a;n=function(n,r){t=t||nokia.maps,a||(a=new t.map.Container,this.map.objects.add(a)),r.style=l(r.style);switch(n){case"circle":c(a,r);break;case"rectangle":h(a,r);break;case"polyline":p(a,r);break;case"polygon":d(a,r);break;default:e.error(n+" not supported")}},r=function(){a&&a.objects&&a.objects.clear()},i=function(e){n.call(this,"circle",e)},s=function(e){n.call(this,"rectangle",e)},o=function(e){n.call(this,"polyline",e)},u=function(e){n.call(this,"polygon",e)},e.jHERE.extend("shape",n),e.jHERE.extend("clearShapes",r),e.jHERE.extend("circle",i),e.jHERE.extend("rectangle",s),e.jHERE.extend("polyline",o),e.jHERE.extend("polygon",u)})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.