Skip to content
Snippets Groups Projects
Commit a43cf3e8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Point is defined as Point structure

parent 9a89c0a0
No related branches found
No related tags found
1 merge request!295Resolve "alternative to google maps api way of visualizing maps"
......@@ -97,10 +97,10 @@ Functions.getPosition = function (element) {
* a second parameter. Both: point and polygon should use google.map.point
* class.
*
* @param point {Point}
* @param {Point} point
* point which we want to check
*
* @param polygon {Point[]}
* @param {Point[]} polygon
* polygon where we check the point
*/
......
......@@ -98,10 +98,7 @@ OverviewDialog.prototype.showOverview = function (overviewImageId) {
var xNormal = xPosition / currentRatio;
var yNormal = yPosition / currentRatio;
var point = {
x: xNormal,
y: yNormal
};
var point = new Point(xNormal, yNormal);
var link = null;
for (var i = 0; i < self.overviewImage.links.length; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment