gmaps4rails 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. metadata +6 -386
  3. data/.gitignore +0 -17
  4. data/.travis.yml +0 -10
  5. data/Gemfile +0 -9
  6. data/Gemfile.lock +0 -182
  7. data/Guardfile +0 -24
  8. data/MIT-LICENSE +0 -20
  9. data/README.rdoc +0 -135
  10. data/Rakefile +0 -4
  11. data/app/assets/javascripts/gmaps4rails/gmaps4rails.base.js.coffee +0 -444
  12. data/app/assets/javascripts/gmaps4rails/gmaps4rails.bing.js.coffee +0 -174
  13. data/app/assets/javascripts/gmaps4rails/gmaps4rails.googlemaps.js.coffee +0 -339
  14. data/app/assets/javascripts/gmaps4rails/gmaps4rails.mapquest.js.coffee +0 -145
  15. data/app/assets/javascripts/gmaps4rails/gmaps4rails.openlayers.js.coffee +0 -261
  16. data/app/views/gmaps4rails/_gmaps4rails.html.erb +0 -20
  17. data/gmaps4rails.gemspec +0 -39
  18. data/lib/generators/gmaps4rails/install_generator.rb +0 -48
  19. data/lib/generators/templates/README +0 -2
  20. data/lib/gmaps4rails.rb +0 -26
  21. data/lib/gmaps4rails/acts_as_gmappable.rb +0 -54
  22. data/lib/gmaps4rails/api_wrappers/base_net_methods.rb +0 -40
  23. data/lib/gmaps4rails/api_wrappers/direction.rb +0 -87
  24. data/lib/gmaps4rails/api_wrappers/geocoder.rb +0 -54
  25. data/lib/gmaps4rails/api_wrappers/places.rb +0 -74
  26. data/lib/gmaps4rails/base.rb +0 -119
  27. data/lib/gmaps4rails/extensions/enumerable.rb +0 -14
  28. data/lib/gmaps4rails/extensions/hash.rb +0 -9
  29. data/lib/gmaps4rails/helper/gmaps4rails_helper.rb +0 -33
  30. data/lib/gmaps4rails/js_builder.rb +0 -157
  31. data/lib/gmaps4rails/json_builder.rb +0 -140
  32. data/lib/gmaps4rails/model_handler.rb +0 -101
  33. data/lib/gmaps4rails/version.rb +0 -3
  34. data/lib/gmaps4rails/view_helper.rb +0 -175
  35. data/lib/tasks/gmaps4rails_tasks.rake +0 -4
  36. data/lib/tasks/jasmine.rake +0 -8
  37. data/public/javascripts/gmaps4rails/gmaps4rails.base.js +0 -464
  38. data/public/javascripts/gmaps4rails/gmaps4rails.bing.js +0 -226
  39. data/public/javascripts/gmaps4rails/gmaps4rails.googlemaps.js +0 -430
  40. data/public/javascripts/gmaps4rails/gmaps4rails.mapquest.js +0 -178
  41. data/public/javascripts/gmaps4rails/gmaps4rails.openlayers.js +0 -265
  42. data/public/stylesheets/gmaps4rails.css +0 -24
  43. data/spec/dummy/.gitignore +0 -2
  44. data/spec/dummy/.rspec +0 -1
  45. data/spec/dummy/README.rdoc +0 -261
  46. data/spec/dummy/Rakefile +0 -7
  47. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  48. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  49. data/spec/dummy/app/assets/stylesheets/gmaps4rails.css +0 -24
  50. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  51. data/spec/dummy/app/controllers/users_controller.rb +0 -101
  52. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  53. data/spec/dummy/app/mailers/.gitkeep +0 -0
  54. data/spec/dummy/app/models/.gitkeep +0 -0
  55. data/spec/dummy/app/models/place.rb +0 -16
  56. data/spec/dummy/app/models/user.rb +0 -12
  57. data/spec/dummy/app/views/layouts/application.html.erb +0 -16
  58. data/spec/dummy/app/views/users/_form.html.erb +0 -37
  59. data/spec/dummy/app/views/users/_map.html.erb +0 -5
  60. data/spec/dummy/app/views/users/edit.html.erb +0 -6
  61. data/spec/dummy/app/views/users/index.html.erb +0 -260
  62. data/spec/dummy/app/views/users/new.html.erb +0 -5
  63. data/spec/dummy/app/views/users/show.html.erb +0 -30
  64. data/spec/dummy/config.ru +0 -4
  65. data/spec/dummy/config/application.rb +0 -62
  66. data/spec/dummy/config/boot.rb +0 -10
  67. data/spec/dummy/config/database.yml +0 -25
  68. data/spec/dummy/config/environment.rb +0 -5
  69. data/spec/dummy/config/environments/development.rb +0 -37
  70. data/spec/dummy/config/environments/production.rb +0 -67
  71. data/spec/dummy/config/environments/test.rb +0 -37
  72. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  73. data/spec/dummy/config/initializers/gmaps4rails.rb +0 -1
  74. data/spec/dummy/config/initializers/inflections.rb +0 -15
  75. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  76. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  77. data/spec/dummy/config/initializers/session_store.rb +0 -8
  78. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  79. data/spec/dummy/config/locales/en.yml +0 -5
  80. data/spec/dummy/config/routes.rb +0 -60
  81. data/spec/dummy/db/migrate/20120408170155_create_users.rb +0 -16
  82. data/spec/dummy/db/schema.rb +0 -29
  83. data/spec/dummy/lib/assets/.gitkeep +0 -0
  84. data/spec/dummy/log/.gitkeep +0 -0
  85. data/spec/dummy/public/404.html +0 -26
  86. data/spec/dummy/public/422.html +0 -26
  87. data/spec/dummy/public/500.html +0 -25
  88. data/spec/dummy/public/favicon.ico +0 -0
  89. data/spec/dummy/public/javascripts/Player.js +0 -22
  90. data/spec/dummy/public/javascripts/Song.js +0 -7
  91. data/spec/dummy/public/logo.png +0 -0
  92. data/spec/dummy/script/rails +0 -6
  93. data/spec/factories/place_factory.rb +0 -16
  94. data/spec/factories/user_factory.rb +0 -23
  95. data/spec/fixtures/google_direction_valid.json +0 -65
  96. data/spec/fixtures/google_geocoding_toulon_france.json +0 -58
  97. data/spec/fixtures/google_places_valid.json +0 -45
  98. data/spec/fixtures/google_wrong_geocoding.json +0 -4
  99. data/spec/javascripts/basic_methods_spec.js +0 -103
  100. data/spec/javascripts/helpers/.gitkeep +0 -0
  101. data/spec/javascripts/helpers/SpecHelper.js +0 -87
  102. data/spec/javascripts/map_spec.js +0 -49
  103. data/spec/javascripts/markers_methods_spec.js +0 -368
  104. data/spec/javascripts/mocks_spec.js +0 -27
  105. data/spec/javascripts/support/jasmine.yml +0 -10
  106. data/spec/javascripts/support/jasmine_config.rb +0 -23
  107. data/spec/javascripts/support/jasmine_runner.rb +0 -20
  108. data/spec/launchers/all_but_requests.rb +0 -0
  109. data/spec/launchers/all_specs.rb +0 -0
  110. data/spec/launchers/requests.rb +0 -0
  111. data/spec/lib/base_spec.rb +0 -59
  112. data/spec/lib/direction_spec.rb +0 -53
  113. data/spec/lib/geocoder_spec.rb +0 -46
  114. data/spec/lib/js_builder_spec.rb +0 -139
  115. data/spec/lib/json_builder_spec.rb +0 -232
  116. data/spec/lib/places_spec.rb +0 -25
  117. data/spec/models/place_spec.rb +0 -35
  118. data/spec/models/user_spec.rb +0 -187
  119. data/spec/spec_helper.rb +0 -44
  120. data/spec/support/geocoding.rb +0 -41
  121. data/spec/support/matchers.rb +0 -73
File without changes
@@ -1,22 +0,0 @@
1
- function Player() {
2
- }
3
- Player.prototype.play = function(song) {
4
- this.currentlyPlayingSong = song;
5
- this.isPlaying = true;
6
- };
7
-
8
- Player.prototype.pause = function() {
9
- this.isPlaying = false;
10
- };
11
-
12
- Player.prototype.resume = function() {
13
- if (this.isPlaying) {
14
- throw new Error("song is already playing");
15
- }
16
-
17
- this.isPlaying = true;
18
- };
19
-
20
- Player.prototype.makeFavorite = function() {
21
- this.currentlyPlayingSong.persistFavoriteStatus(true);
22
- };
@@ -1,7 +0,0 @@
1
- function Song() {
2
- }
3
-
4
- Song.prototype.persistFavoriteStatus = function(value) {
5
- // something complicated
6
- throw new Error("not yet implemented");
7
- };
Binary file
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,16 +0,0 @@
1
- FactoryGirl.define do
2
- factory :place do
3
-
4
- trait :paris do
5
- address "Paris, France"
6
- end
7
-
8
- trait :invalid do
9
- address "home"
10
- end
11
-
12
- address "Toulon, France"
13
-
14
- factory :place_paris, :traits => [:paris]
15
- end
16
- end
@@ -1,23 +0,0 @@
1
- FactoryGirl.define do
2
- factory :user do
3
-
4
- trait :paris do
5
- address "Paris, France"
6
- end
7
-
8
- trait :with_pic do
9
- picture "http://www.blankdots.com/img/github-32x32.png"
10
- end
11
-
12
- trait :invalid do
13
- address "home"
14
- end
15
-
16
- name "Guinea Pig"
17
- address "Toulon, France"
18
-
19
- factory :user_paris, :traits => [:paris]
20
- factory :user_with_pic, :traits => [:with_pic]
21
- factory :invalid_user, :traits => [:invalid]
22
- end
23
- end
@@ -1,65 +0,0 @@
1
- {
2
- "status": "OK",
3
- "routes": [ {
4
- "summary": "I-40 W",
5
- "legs": [ {
6
- "steps": [ {
7
- "travel_mode": "DRIVING",
8
- "start_location": {
9
- "lat": 41.8507300,
10
- "lng": -87.6512600
11
- },
12
- "end_location": {
13
- "lat": 41.8525800,
14
- "lng": -87.6514100
15
- },
16
- "polyline": {
17
- "points": "a~l~Fjk~uOwHJy@P"
18
- },
19
- "duration": {
20
- "value": 19,
21
- "text": "1 min"
22
- },
23
- "html_instructions": "Head \u003cb\u003enorth\u003c/b\u003e on \u003cb\u003eS Morgan St\u003c/b\u003e toward \u003cb\u003eW Cermak Rd\u003c/b\u003e",
24
- "distance": {
25
- "value": 207,
26
- "text": "0.1 mi"
27
- }
28
- }],
29
- "duration": {
30
- "value": 74384,
31
- "text": "20 hours 40 mins"
32
- },
33
- "distance": {
34
- "value": 2137146,
35
- "text": "1,328 mi"
36
- },
37
- "start_location": {
38
- "lat": 35.4675602,
39
- "lng": -97.5164276
40
- },
41
- "end_location": {
42
- "lat": 34.0522342,
43
- "lng": -118.2436849
44
- },
45
- "start_address": "Oklahoma City, OK, USA",
46
- "end_address": "Los Angeles, CA, USA"
47
- } ],
48
- "copyrights": "Map data ©2010 Google, Sanborn",
49
- "overview_polyline": {
50
- "points": "a~l~Fjk~uOnzh@vlbBtc~@tsE`vnApw{A`dw@~w\\|tNtqf@l{Yd_Fblh@rxo@b}@xxSfytAblk@xxaBeJxlcBb~t@zbh@jc|Bx}C`rv@rw|@rlhA~dVzeo@vrSnc}Axf]fjz@xfFbw~@dz{A~d{A|zOxbrBbdUvpo@`cFp~xBc`Hk@nurDznmFfwMbwz@bbl@lq~@loPpxq@bw_@v|{CbtY~jGqeMb{iF|n\\~mbDzeVh_Wr|Efc\\x`Ij{kE}mAb~uF{cNd}xBjp]fulBiwJpgg@|kHntyArpb@bijCk_Kv~eGyqTj_|@`uV`k|DcsNdwxAott@r}q@_gc@nu`CnvHx`k@dse@j|p@zpiAp|gEicy@`omFvaErfo@igQxnlApqGze~AsyRzrjAb__@ftyB}pIlo_BflmA~yQftNboWzoAlzp@mz`@|}_@fda@jakEitAn{fB_a]lexClshBtmqAdmY_hLxiZd~XtaBndgC"
51
- },
52
- "warnings": [ ],
53
- "waypoint_order": [ 0, 1 ],
54
- "bounds": {
55
- "southwest": {
56
- "lat": 34.0523600,
57
- "lng": -118.2435600
58
- },
59
- "northeast": {
60
- "lat": 41.8781100,
61
- "lng": -87.6297900
62
- }
63
- }
64
- } ]
65
- }
@@ -1,58 +0,0 @@
1
- {
2
- "results" : [
3
- {
4
- "address_components" : [
5
- {
6
- "long_name" : "Toulon",
7
- "short_name" : "Toulon",
8
- "types" : [ "locality", "political" ]
9
- },
10
- {
11
- "long_name" : "Département Var",
12
- "short_name" : "83",
13
- "types" : [ "administrative_area_level_2", "political" ]
14
- },
15
- {
16
- "long_name" : "Provence-Alpes-Côte d'Azur",
17
- "short_name" : "PACA",
18
- "types" : [ "administrative_area_level_1", "political" ]
19
- },
20
- {
21
- "long_name" : "France",
22
- "short_name" : "FR",
23
- "types" : [ "country", "political" ]
24
- }
25
- ],
26
- "formatted_address" : "Toulon, France",
27
- "geometry" : {
28
- "bounds" : {
29
- "northeast" : {
30
- "lat" : 43.1716730,
31
- "lng" : 5.987382999999999
32
- },
33
- "southwest" : {
34
- "lat" : 43.1010490,
35
- "lng" : 5.8794790
36
- }
37
- },
38
- "location" : {
39
- "lat" : 43.1242280,
40
- "lng" : 5.9280
41
- },
42
- "location_type" : "APPROXIMATE",
43
- "viewport" : {
44
- "northeast" : {
45
- "lat" : 43.1567950,
46
- "lng" : 5.99202970
47
- },
48
- "southwest" : {
49
- "lat" : 43.09164370,
50
- "lng" : 5.86397030
51
- }
52
- }
53
- },
54
- "types" : [ "locality", "political" ]
55
- }
56
- ],
57
- "status" : "OK"
58
- }
@@ -1,45 +0,0 @@
1
- {
2
- "html_attributions" : [
3
- "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
4
- ],
5
- "results" : [
6
- {
7
- "geometry" : {
8
- "location" : {
9
- "lat" : -33.8719830,
10
- "lng" : 151.1990860
11
- }
12
- },
13
- "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
14
- "id" : "677679492a58049a7eae079e0890897eb953d79b",
15
- "name" : "Zaaffran Restaurant - BBQ and GRILL, Darling Harbour",
16
- "rating" : 3.90,
17
- "reference" : "CpQBjAAAAHDHuimUQATR6gfoWNmZlk5dKUKq_n46BpSzPQCjk1m9glTKkiAHH_Gs4xGttdOSj35WJJDAV90dAPnNnZK2OaxMgogdeHKQhIedh6UduFrW53wtwXigUfpAzsCgIzYNI0UQtCj38cr_DE56RH4Wi9d2bWbbIuRyDX6tx2Fmk2EQzO_lVJ-oq4ZY5uI6I75RnxIQJ6smWUVVIHup9Jvc517DKhoUidfNPyQZZIgGiXS_SwGQ1wg0gtc",
18
- "types" : [ "restaurant", "food", "establishment" ],
19
- "vicinity" : "Harbourside Centre 10 Darling Drive, Darling Harbour, Sydney"
20
- },
21
- {
22
- "geometry" : {
23
- "location" : {
24
- "lat" : -33.8722580,
25
- "lng" : 151.1986550
26
- }
27
- },
28
- "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
29
- "id" : "27ea39c8fed1c0437069066b8dccf958a2d06f19",
30
- "name" : "Criniti's Darling Harbour",
31
- "rating" : 3.60,
32
- "reference" : "CnRwAAAA-5kh5WZ3m1CMTO3LslvhRtAYsrOcQP7wB9AE1bV5R6Bd46NN5wB16MtImXWQ9eS1nWVbV_j-8iXYXRpU13Efp1t_d-Dp4WfEsFcYj-_g6db1SC1vAukyeCyotjS5xrwhzqWWAhgmA4qIliWeev2u1BIQprWzxl_hkj_w3QdTiUBYKxoUDVTjF4RugJdaJWkC4n6w6pSajKw",
33
- "types" : [ "restaurant", "food", "establishment" ],
34
- "vicinity" : "Shop 461, 2-10 Darling Drive, Harbourside Shopping Centre, DARLING HARBOUR",
35
- "events" : [
36
- {
37
- "event_id" : "7lH_gK1GphU",
38
- "summary" : "Google Maps Developer Meetup: Rockin' out with the Places API",
39
- "url" : "https://developers.google.com/maps/documentation/places"
40
- }
41
- ]
42
- }
43
- ],
44
- "status" : "OK"
45
- }
@@ -1,4 +0,0 @@
1
- {
2
- "results" : [],
3
- "status" : "ZERO_RESULTS"
4
- }
@@ -1,103 +0,0 @@
1
- var gmap;
2
-
3
- beforeEach(function() {
4
- gmap = new Gmaps4RailsGoogle();
5
- });
6
-
7
- describe("Gmaps4Rails", function() {
8
-
9
- describe("Basic methods", function() {
10
-
11
- describe("exists", function() {
12
- it("should render true for valid cases", function() {
13
- var test = { "ok": "I exist", "null": null}
14
- fake_array = [];
15
- expect(gmap.exists(test.ok)).toBeTruthy();
16
- expect(gmap.exists(test.null)).toBeTruthy();
17
- expect(gmap.exists(fake_array)).toBeTruthy();
18
- });
19
- it("should render false for invalid cases", function() {
20
- var test = { "empty": ""};
21
- expect(gmap.exists(test.empty)).toBeFalsy();
22
- expect(gmap.exists(test.unknown)).toBeFalsy();
23
- });
24
- });
25
-
26
- describe("merges", function() {
27
-
28
- beforeEach(function() {
29
- this.default_obj = {
30
- foo: 1,
31
- bar: 1
32
- };
33
- this.obj = {
34
- bar: 2,
35
- baz: 3
36
- };
37
- this.expected_result = {
38
- foo: 1,
39
- bar: 2,
40
- baz: 3
41
- };
42
- });
43
-
44
-
45
- describe("mergeWithDefault", function() {
46
- it("should merge default_object within object", function() {
47
- gmap.default_foo = this.default_obj;
48
- gmap.foo = this.obj;
49
- expect(gmap.mergeWithDefault("foo")).toBeTruthy();
50
- expect(gmap.foo).toEqual(this.expected_result);
51
- });
52
- });
53
-
54
- describe("mergeObjectWithDefault", function() {
55
- it("should return proper values without changing actual objects", function() {
56
- var copy_default = this.default_obj;
57
- var copy_obj = this.obj;
58
- var result = gmap.mergeObjectWithDefault(copy_obj, copy_default);
59
- expect(result).toEqual(this.expected_result);
60
- expect(this.obj).toEqual(copy_obj);
61
- expect(this.default_obj).toEqual(copy_default);
62
- });
63
- });
64
- });
65
-
66
-
67
- describe("random", function() {
68
- it("should return a number between between -1 and 1", function() {
69
- for (var i = 0; i < 100; ++i) {
70
- var x = gmap.random();
71
- expect(x).toBeLessThan(1);
72
- expect(x).toBeGreaterThan(-1);
73
- }
74
- });
75
- });
76
-
77
- describe("randomize", function() {
78
- it("should alter coordinates within a determined radius", function() {
79
- gmap.markers_conf.max_random_distance = 100;
80
- for (var i = 0; i < 100; ++i) {
81
- var x = gmap.randomize(0,0);
82
- var distanceInMeters = geoHelpers.getDistanceFromO(x[0], x[1])/1000;
83
- //this test could seem weird, but because latitude AND longitude could be moved by 100m, the highest diagonal is 142m
84
- expect(distanceInMeters).toBeLessThan(142);
85
- }
86
- });
87
- });
88
- });
89
- });
90
-
91
- describe("Gmaps", function() {
92
-
93
- it("should initialize all requested maps", function() {
94
- Gmaps.load_test1 = jasmine.createSpy('myStub');
95
- Gmaps.load_test2 = jasmine.createSpy('myStub');
96
- Gmaps.test1 = true;
97
- Gmaps.test2 = true;
98
- Gmaps.loadMaps();
99
- expect(Gmaps.load_test1).toHaveBeenCalled();
100
- expect(Gmaps.load_test2).toHaveBeenCalled();
101
- });
102
-
103
- });
File without changes
@@ -1,87 +0,0 @@
1
- RichMarker = function(args) {
2
- return { "who": "I'm RichMarker" };
3
- }
4
-
5
- google = new function(){
6
- this.maps = new function(){
7
- this.Point = function(a,b){
8
- return [a, b];
9
- };
10
- this.LatLng = function(a,b){
11
- return [a, b];
12
- };
13
- this.Map = function(arg1, arg2){
14
- return { "who": "I'm map"};
15
- };
16
- this.LatLngBounds = function(){
17
- return [];
18
- };
19
- this.MarkerImage = function(markerPicture, markerSize, origin, anchor, scaledSize){
20
- return {"who": "Point", "picture": markerPicture, "size": markerSize, "url": origin, "anchor": anchor, "scale": scaledSize};
21
- };
22
- this.Marker = function(args){
23
- return { "who": "I'm marker" };
24
- };
25
- this.Marker.prototype.map = null;
26
- this.Marker.prototype.setMap = function(mapId) { this.map = mapId; };
27
-
28
- this.Size = function(w, h){
29
- return [w,h];
30
- };
31
- this.MapTypeId = function(){
32
- return "MapTypeId";
33
- };
34
- this.InfoWindow = function(){
35
-
36
- };
37
- this.event = new function(){
38
- this.addListener = function(){};
39
- }
40
- };
41
- };
42
-
43
- geoHelpers = new function(){
44
- //returns distance in km
45
- this.getDistance = function(lat1, lon1, lat2, lon2){
46
- var R = 6371; // km
47
- var dLat = (lat2-lat1).toRad();
48
- var dLon = (lon2-lon1).toRad();
49
- var lat1 = lat1.toRad();
50
- var lat2 = lat2.toRad();
51
- var a = Math.sin(dLat/2) * Math.sin(dLat/2) +
52
- Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2);
53
- var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
54
- return(R * c);
55
- };
56
- //just return distance from point 0, 0
57
- this.getDistanceFromO = function(lat1, lon1){
58
- return(geoHelpers.getDistance(lat1, lon1, 0, 0));
59
- };
60
- };
61
-
62
- MarkerClusterer = function() { return {"who": "I'm Clusterer"}; };
63
-
64
- Number.prototype.toRad = function() {
65
- return this * Math.PI / 180;
66
- };
67
-
68
- getRawMarkers = function() {
69
- return [{ "lng": "5.9311119", "latitude": "43.1251606"}
70
- ,{ "lng": "2.3509871", "lat": "48.8566667"}
71
- ,{ "lng": "2.3509871", "lat": "48.8566667", "serviceObject": true}
72
- ,{ "lng": "2.3509871", "lat": "48.8566667", "serviceObject": false}];
73
- };
74
-
75
- getFullMarker = function() {
76
- return { "lng": "5", "lat": "43", "picture": "picture", "width": "width", "height": "height", "title": "title", "marker_anchor": [0,1], "shadow_anchor": [1,0], "shadow_picture": "shadow_picture", "shadow_width": "shadow_width", "shadow_height": "shadow_height", "draggable": true, "description": "infowindow content" };
77
- };
78
-
79
- getEmptyMarker = function() {
80
- return { "lng": "5", "lat": "43"};
81
- };
82
-
83
- clearMarkerTraces = function(){
84
- gmap.markers = [];
85
- gmap.markers_conf.offset = 0;
86
- gmap.markers_conf.randomize = false;
87
- };