Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions maldives.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*!
*
* Jquery Mapael - Dynamic maps jQuery plugin (based on raphael.js)
* Requires jQuery and Mapael >=2.0.0
*
* Map of your_map_name
*
* @author author name
*/
(function (factory) {
if (typeof exports === 'object') {
// CommonJS
module.exports = factory(require('jquery'), require('jquery-mapael'));
} else if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'mapael'], factory);
} else {
// Browser globals
factory(jQuery, jQuery.mapael);
}
}(function ($, Mapael) {

"use strict";

$.extend(true, Mapael,
{
maps : {
maldives : {
width : 210,
height : 297,
getCoords : function (lat, lon) {
// todo
return {"x" : lon, "y" : lat};
},
'elems': {
"path2401" : "m 3993.81,3282.4 c -0.81,24.84 -34.45,19.74 -47.81,7.05 -25.07,-23.82 -35.46,-27.76 -58.61,-46.32 -47.69,-38.23 25.08,-86.36 67.91,-61.8 23.26,13.34 66.13,58.76 40.56,85.55 -3.43,3.59 -2.22,10.91 -2.04,15.52 z",
"path2403" : "m 4004.14,3815.38 c -15.41,-40.21 -10.8,-52.7 -18.47,-89.18 -4.37,-20.77 -23.04,-34.2 -37.8,-48.27 -29.68,-29.33 -28.21,-36.23 -32.63,-81.61 -1.7,-17.48 -1.17,-90.89 2,-108.94 7.22,-40.99 19.85,-56.55 35.94,-93.67 6.82,-16.5 13.13,-36.27 26.8,-48.38 8.07,-4.02 31.2,2.34 43.91,-6.68 32.23,-22.89 28.94,-31.53 48.95,-48.98 9.74,-8.49 25.75,-17.17 38.55,-17.35 7.63,-0.11 24.96,-3.15 29.57,3.41 28.84,41.07 16.44,59.63 -3.35,98.48 -49.58,75.6 -81.97,52.75 -92.02,158.51 -7.85,74.86 -19.48,88.84 52.21,123.55 60.26,29.18 65.47,61.28 91.11,118.3 18.76,81.73 -15.93,129.65 73.93,166.54 28.17,11.56 49.64,32.89 53.31,64.6 3.65,31.48 -19.37,34.85 -30.52,74.83 -10,35.81 -8.8,68.45 -56.22,72.18 -51.65,4.06 -122.55,-95.69 -132.78,-140.36 -13.39,-58.52 -2.12,-54.11 -44.97,-110.13 -30.96,-37.83 -30.7,-41.83 -47.52,-86.85 z",
"path2405" : "m 3753.45,3661.98 c 6.86,-5.55 55.17,-43.35 54.89,-16.42 -0.06,5.69 -40.78,53.17 -49.74,86.51 -4.11,15.28 -15.5,59.55 -40.71,44.38 -30.79,-18.53 4.69,-79.46 20.49,-98.43 z",
"path2407" : "m 3972.02,3937.84 c -10.37,17.51 -30.61,-15.7 -7.33,-13.1 7.87,0.88 9.21,6.38 7.33,13.1 z",
"path2409" : "m 3899.68,4345.64 c 3.21,-35.93 21.47,-30.74 -9.93,-74.29 -38.63,-53.57 -7.61,-134.5 10.41,-191.4 9.59,-30.31 57.37,-153.86 93.49,-77.31 20.32,43.06 44.89,179.8 42.44,230.52 -2.78,57.78 -21.76,91.45 -76.17,111.03 -9.9,3.56 -49.13,11.07 -56.56,6.56 l -3.69,-5.11 z",
"path2411" : "m 4074.65,4366.07 c 67.02,70.92 70.37,65.39 -10.79,145.27 -44.89,44.18 -91.45,85.4 -157.46,59.73 -17.6,-6.84 -38.41,-51.03 -32.68,-69.41 6.7,-21.52 11.92,-32.55 17.18,-56.44 13.78,-62.54 50.2,-70.58 101.24,-95.47 41.32,-20.15 52.79,-16.55 82.51,16.32 z",
"path2413" : "m 4366.02,4407.97 c -51.04,-0.91 -33.2,-48.07 -114.59,-67.18 -30.23,-7.09 -34.98,-6.63 -24.33,-44.59 10.2,-36.35 52.89,-69.13 85.76,-83.38 20.96,-9.08 22.28,12.74 42.75,31.41 34.87,31.81 105.92,74.22 68.27,133.95 -12.68,20.11 -36.23,25.43 -57.85,29.79 z",
"path2415" : "m 4294.73,4609.83 c -4.24,-27.17 19.53,-13.18 19.46,-8.26 -0.25,18.47 -15.88,17.65 -19.46,8.26 z",
"path2417" : "m 3909.76,4685.15 c -17.59,-38.7 49.64,-31.16 69.22,-29.65 46.06,3.54 25.53,17.68 -0.09,32.45 -23.46,13.53 -49.75,21.29 -69.13,-2.8 z",
"path2419" : "m 4323.44,4733.37 c -61.37,-38.57 -107.96,32.43 -8.51,21.96 15.61,-1.65 18.46,-9.57 8.51,-21.96 z",
"path2421" : "m 4250.7,4856.19 c 9.06,-16.02 16.06,-25.63 25.42,-43.62 24.49,-47.06 34.18,-54.96 77.74,-17.31 42.94,37.11 33.48,57.18 83.06,94.7 48.26,36.67 55.08,64.27 1.59,101.19 -85.89,59.28 -54.29,100.49 -82.88,130.42 -11.11,11.62 -68.93,18.75 -80.93,4.91 -52.41,-60.51 -47.37,-47.81 -42.96,-132.43 1.84,-35.33 5.45,-106.72 18.95,-137.85 z",
"path2423" : "m 4327.39,5325.62 c -8.06,11.68 -24.67,41.41 -39.69,41.99 -27.48,1.07 -21.5,-0.06 -40.05,-27.71 -8.43,-12.56 -0.34,-148.3 9.26,-154.08 32.66,-19.69 15.5,-30.61 63.08,-30.45 33.2,0.11 31.15,6.42 38.75,37.57 7.62,31.23 -13.82,104.46 -31.36,132.68 z",
"path2425" : "m 3968.72,5038.67 c 17.83,-46.63 74.05,11.31 34.25,30.71 -22.19,10.81 -35.18,-7.56 -34.25,-30.71 z",
"path2427" : "m 3843.23,5066.68 c 42.72,-28.22 56.52,-0.28 82.25,34.84 68.06,110.14 35.05,128.29 52.45,243.61 10.16,67.35 16.76,214.39 -57.4,249.48 -26.26,12.43 -95.4,0.28 -103.69,-34.46 -4.39,-18.44 -7.11,-67.08 -10.36,-90.54 -11.26,-81.25 -7.55,-113.72 -3.02,-191.1 2.44,-41.76 5.02,-82.26 9.74,-123.87 3.6,-28.39 8.39,-67.41 30.03,-87.97 z",
"path2429" : "m 4185.85,5570.89 c 1.94,-6.81 39.94,-72.7 41.7,-75.04 34.26,-41.4 89.01,-77.09 109.7,-1.86 17.57,63.86 32,142.01 117.17,96.19 27.34,-14.71 50.69,-8.41 60.16,24.46 13.59,47.17 -40.8,60.81 -76.12,59.01 -81.24,-4.14 -83.92,29.56 -115.26,29.07 -48.56,-0.77 -46.35,-64.3 -98.18,-82.09 -31.07,-10.66 -46.93,-11.27 -39.17,-49.73 z",
"path2431" : "m 4288.33,5757.07 c -42.7,3.94 -10.79,-55.25 19.16,-27.44 6.15,5.7 6.7,20 -7.06,24.31 -3.98,1.24 -8.04,2.22 -12.11,3.13 z",
"path2433" : "m 4431.55,5894.43 c 17.08,-52.17 4.61,-55.11 -44.24,-73.31 -27.5,-10.25 -127.06,-50.5 -139.48,-8.86 -4.7,56.37 -4.14,123.22 -5.79,181.13 -0.97,33.93 -8.15,92.81 44.99,73.85 18.63,-6.65 105.81,-80.88 116.11,-98.51 11.65,-19.96 21.06,-51.8 28.41,-74.3 z",
"path2435" : "m 3994.39,5853.88 c -39.78,22 -92.88,25.97 -94.69,-30.84 -1.27,-39.67 -65.33,-102.67 21.81,-127.38 40.46,-11.47 73.61,15.9 95.05,47.82 17.71,26.38 8.98,86.88 -14.13,104.94 l -8.03,5.46 z",
"path2437" : "m 3977.37,5905.97 c 96.48,34 31.36,239.65 -53.52,222.98 -61.58,-12.09 -74.46,-233.45 43.27,-224.37 z",
"path2439" : "m 4020.1,6218.02 c 93.53,-26.17 53.31,-8.99 144.75,18.43 45.67,13.69 72.01,13.28 87.48,67.45 11.24,39.37 -51.56,74.96 -80.89,94.85 -71.35,48.37 -193.11,121.59 -222.42,-9.9 -5.74,-25.73 -25.44,-104.06 -17.88,-125.65 10.6,-30.3 61.94,-38.43 88.96,-45.17 z",
"path2441" : "m 4390.07,6480.15 c 10.62,0.36 -18.96,22.76 -23.84,34.48 -21.79,68.99 28.62,158.31 -67.51,193.26 -27,9.81 -88.67,30.4 -107.51,-1.19 -16.5,-27.66 -31,2.11 -30,-57.69 0.39,-22.89 3.06,-22.26 22.37,-40.2 30.8,-28.62 169.18,-113.5 206.5,-128.66 z",
"path2443" : "m 4241.59,7306.28 c -18.02,-1.87 -30.45,-0.93 -51.48,-3.95 -23.67,-3.39 -35.5,1.27 -53.41,18.51 -29.38,38.12 16.93,44.5 19.74,82.66 -9.71,56.95 -67.63,72.75 -112.08,107.22 -59.96,48.67 -62.63,84.33 -37.67,156.61 24.93,72.2 81.4,130.96 163.72,108.8 59.78,-23.26 29.47,-27.87 110.64,-42.5 42.8,-12.36 118.13,-77.94 108.11,-127.8 -11.71,-58.26 -77.46,-111.16 -85.21,-140.44 -7.7,-29.09 -2.76,-53.09 -14.56,-92.28 -8.21,-27.3 -18.73,-57.8 -47.79,-66.84 z",
"path2445" : "m 4269.94,8091.79 c -10.85,-35.72 38.89,4.54 27.46,43.45 -7.57,25.78 -26.68,-40.76 -27.46,-43.45 z",
"path2447" : "m 4094.06,8376.97 c -4.94,-3.31 -34.37,-34.66 -35.37,-36.52 -6.92,-12.89 -5.62,-28.39 -5.07,-42.49 30.19,-5.19 11.35,16.87 68.21,-2.08 5.47,-1.82 42.94,-14.44 37.7,1.75 -5.77,17.86 8.17,21.98 -20.8,57.06 -10.99,13.31 -26.09,26.66 -44.67,22.29 z"
}
}
}
}
);

return Mapael;

}));