Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9f270b1

Browse files
committedMay 17, 2019
feat: add dynamically generated MarkerTypes
Holy fuck.. This took a lot of manual labour just to type out the blips the map can use :( Anyways, the MarkerTypes should now be generated when the page is loaded, saves on hardcoding each and every blip (there's hundereds) plus, it should allow for people to easily change the sprite sheet if they want.
1 parent 35021ee commit 9f270b1

File tree

1 file changed

+203
-592
lines changed

1 file changed

+203
-592
lines changed
 

‎js/src/markers.js

+203-592
Original file line numberDiff line numberDiff line change
@@ -20,604 +20,215 @@ var MarkerTypes = {
2020
size: new google.maps.Size(22, 32),
2121
origin: new google.maps.Point(0, 0),
2222
anchor: new google.maps.Point(11, 32)
23-
},
23+
}
24+
// Custom markers are generated and added below
25+
};
2426

25-
// Custom markers
2627

27-
// 1st row of the spritemap
28-
waypoint: {
29-
icon: "blips_texturesheet.png",
30-
size: new google.maps.Size( customImageWidth, customImageHeight ),
31-
origin: new google.maps.Point( 0,0 ),
32-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
33-
scaledSize: new google.maps.Size( 1024/2,1024/2 ) // spritemap /2
34-
},
35-
jet: {
36-
icon: "blips_texturesheet.png",
37-
size: new google.maps.Size( customImageWidth, customImageHeight ),
38-
origin: new google.maps.Point( customImageWidth,0 ),
39-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
40-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
41-
},
42-
lift: {
43-
icon: "blips_texturesheet.png",
44-
size: new google.maps.Size( customImageWidth, customImageHeight ),
45-
origin: new google.maps.Point( customImageWidth * 2,0 ),
46-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
47-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
48-
},
49-
race: {
50-
icon: "blips_texturesheet.png",
51-
size: new google.maps.Size( customImageWidth, customImageHeight ),
52-
origin: new google.maps.Point( customImageWidth * 3,0 ),
53-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
54-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
55-
},
56-
safehouse: {
57-
icon: "blips_texturesheet.png",
58-
size: new google.maps.Size( customImageWidth, customImageHeight ),
59-
origin: new google.maps.Point( customImageWidth * 4,0 ),
60-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
61-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
62-
},
63-
helicopter: {
64-
icon: "blips_texturesheet.png",
65-
size: new google.maps.Size( customImageWidth, customImageHeight ),
66-
origin: new google.maps.Point( customImageWidth * 5,0 ),
67-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
68-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
69-
},
70-
speech: {
71-
icon: "blips_texturesheet.png",
72-
size: new google.maps.Size( customImageWidth, customImageHeight ),
73-
origin: new google.maps.Point( customImageWidth * 6,0 ),
74-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
75-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
76-
},
77-
garage: {
78-
icon: "blips_texturesheet.png",
79-
size: new google.maps.Size( customImageWidth, customImageHeight ),
80-
origin: new google.maps.Point( customImageWidth * 7,0 ),
81-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
82-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
83-
},
84-
pill: {
85-
icon: "blips_texturesheet.png",
86-
size: new google.maps.Size( customImageWidth, customImageHeight ),
87-
origin: new google.maps.Point( customImageWidth * 8,0 ),
88-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
89-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
90-
},
91-
shop: {
92-
icon: "blips_texturesheet.png",
93-
size: new google.maps.Size( customImageWidth, customImageHeight ),
94-
origin: new google.maps.Point( customImageWidth * 9,0 ),
95-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
96-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
97-
},
98-
policeCar: {
99-
icon: "blips_texturesheet.png",
100-
size: new google.maps.Size( customImageWidth, customImageHeight ),
101-
origin: new google.maps.Point( customImageWidth * 10,0 ),
102-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
103-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
104-
},
105-
// 11 = shop.. again
106-
policeStation: {
107-
icon: "blips_texturesheet.png",
108-
size: new google.maps.Size( customImageWidth, customImageHeight ),
109-
origin: new google.maps.Point( customImageWidth * 12,0 ),
110-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
111-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
112-
},
113-
hospital: {
114-
icon: "blips_texturesheet.png",
115-
size: new google.maps.Size( customImageWidth, customImageHeight ),
116-
origin: new google.maps.Point( customImageWidth * 13,0 ),
117-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
118-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
119-
},
120-
// 14 = helecopter again
121-
question: {
122-
icon: "blips_texturesheet.png",
123-
size: new google.maps.Size( customImageWidth, customImageHeight ),
124-
origin: new google.maps.Point( customImageWidth * 15,0 ),
125-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
126-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
127-
},
28+
// FUCK ME, GTA HAS A LOT OF FUCKING BLIPS
29+
var types = {
30+
Standard: {id: 1, x: 0, y: 0},
31+
Jet: {id: 16},
32+
Lift: {id: 36},
33+
RaceFinish : {id: 38},
34+
Safehouse : {id: 40},
35+
PoliceHelicopter: {id: 43},
36+
ChatBubble : {id: 47},
37+
Garage2 : {id: 50},
38+
Drugs : {},
39+
Store : {},
40+
PoliceCar : {id: 56},
41+
PoliceStation : {id: 60, x : 12, y: 0},
42+
Hospital : {},
43+
Helicopter : {id: 64},
44+
StrangersAndFreaks : {},
12845

129-
// ROW 2
130-
moneyTuck: {
131-
icon: "blips_texturesheet.png",
132-
size: new google.maps.Size( customImageWidth, customImageHeight ),
133-
origin: new google.maps.Point( 0, customImageHeight ),
134-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
135-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
136-
},
137-
towTruck: {
138-
icon: "blips_texturesheet.png",
139-
size: new google.maps.Size( customImageWidth, customImageHeight ),
140-
origin: new google.maps.Point( customImageWidth * 1, customImageHeight ),
141-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
142-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
143-
},
144-
sissors: {
145-
icon: "blips_texturesheet.png",
146-
size: new google.maps.Size( customImageWidth, customImageHeight ),
147-
origin: new google.maps.Point( customImageWidth * 2, customImageHeight ),
148-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
149-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
150-
},
151-
losSantosCustoms: {
152-
icon: "blips_texturesheet.png",
153-
size: new google.maps.Size( customImageWidth, customImageHeight ),
154-
origin: new google.maps.Point( customImageWidth * 3, customImageHeight ),
155-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
156-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
157-
},
158-
clothes: {
159-
icon: "blips_texturesheet.png",
160-
size: new google.maps.Size( customImageWidth, customImageHeight ),
161-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight ),
162-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
163-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
164-
},
165-
tattoo: {
166-
icon: "blips_texturesheet.png",
167-
size: new google.maps.Size( customImageWidth, customImageHeight ),
168-
origin: new google.maps.Point( customImageWidth * 5, customImageHeight ),
169-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
170-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
171-
},
172-
simeon: { // the letter A
173-
icon: "blips_texturesheet.png",
174-
size: new google.maps.Size( customImageWidth, customImageHeight ),
175-
origin: new google.maps.Point( customImageWidth * 6, customImageHeight ),
176-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
177-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
178-
},
179-
lester: {
180-
icon: "blips_texturesheet.png",
181-
size: new google.maps.Size( customImageWidth, customImageHeight ),
182-
origin: new google.maps.Point( customImageWidth * 7, customImageHeight ),
183-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
184-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
185-
},
186-
michael: {
187-
icon: "blips_texturesheet.png",
188-
size: new google.maps.Size( customImageWidth, customImageHeight ),
189-
origin: new google.maps.Point( customImageWidth * 8, customImageHeight ),
190-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
191-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
192-
},
193-
trevor: {
194-
icon: "blips_texturesheet.png",
195-
size: new google.maps.Size( customImageWidth, customImageHeight ),
196-
origin: new google.maps.Point( customImageWidth * 9, customImageHeight ),
197-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
198-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
199-
},
200-
heist: {
201-
icon: "blips_texturesheet.png",
202-
size: new google.maps.Size( customImageWidth, customImageHeight ),
203-
origin: new google.maps.Point( customImageWidth * 10, customImageHeight ),
204-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
205-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
206-
},
207-
deathmatch: {
208-
icon: "blips_texturesheet.png",
209-
size: new google.maps.Size( customImageWidth, customImageHeight ),
210-
origin: new google.maps.Point( customImageWidth * 11, customImageHeight ),
211-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
212-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
213-
},
214-
vinewoodTours: {
215-
icon: "blips_texturesheet.png",
216-
size: new google.maps.Size( customImageWidth, customImageHeight ),
217-
origin: new google.maps.Point( customImageWidth * 12, customImageHeight ),
218-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
219-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
220-
},
221-
franklin: {
222-
icon: "blips_texturesheet.png",
223-
size: new google.maps.Size( customImageWidth, customImageHeight ),
224-
origin: new google.maps.Point( customImageWidth * 13, customImageHeight ),
225-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
226-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
227-
},
228-
// 14 = franklin
229-
chinese: {
230-
icon: "blips_texturesheet.png",
231-
size: new google.maps.Size( customImageWidth, customImageHeight ),
232-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight ),
233-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
234-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
235-
},
46+
ArmoredTruck : { x : 0, y:1 },
47+
TowTruck : {id: 68},
48+
Barber : {id: 71},
49+
LosSantosCustoms : {},
50+
Clothes : {},
51+
TattooParlor : {id: 75},
52+
Simeon : {},
53+
Lester : {},
54+
Michael : {},
55+
Trevor : {},
56+
Rampage : {id: 84, x : 11},
57+
VinewoodTours : {},
58+
Lamar : {},
59+
Franklin : {id: 88},
60+
Chinese : {},
23661

237-
//ROW 3
238-
airport: {
239-
icon: "blips_texturesheet.png",
240-
size: new google.maps.Size( customImageWidth, customImageHeight ),
241-
origin: new google.maps.Point( 0, customImageHeight * 2 ),
242-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
243-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
244-
},
245-
bar: {
246-
icon: "blips_texturesheet.png",
247-
size: new google.maps.Size( customImageWidth, customImageHeight ),
248-
origin: new google.maps.Point( customImageWidth * 1, customImageHeight * 2 ),
249-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
250-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
251-
},
252-
parachute: {
253-
icon: "blips_texturesheet.png",
254-
size: new google.maps.Size( customImageWidth, customImageHeight ),
255-
origin: new google.maps.Point( customImageWidth * 2, customImageHeight * 2 ),
256-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
257-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
258-
},
259-
carWash: {
260-
icon: "blips_texturesheet.png",
261-
size: new google.maps.Size( customImageWidth, customImageHeight ),
262-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight * 2 ),
263-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
264-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
265-
},
266-
comedyClub: {
267-
icon: "blips_texturesheet.png",
268-
size: new google.maps.Size( customImageWidth, customImageHeight ),
269-
origin: new google.maps.Point( customImageWidth * 5, customImageHeight * 2 ),
270-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
271-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
272-
},
273-
darts: {
274-
icon: "blips_texturesheet.png",
275-
size: new google.maps.Size( customImageWidth, customImageHeight ),
276-
origin: new google.maps.Point( customImageWidth * 6, customImageHeight * 2 ),
277-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
278-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
279-
},
280-
// 7 & 8 = H
281-
fib: {
282-
icon: "blips_texturesheet.png",
283-
size: new google.maps.Size( customImageWidth, customImageHeight ),
284-
origin: new google.maps.Point( customImageWidth * 9, customImageHeight * 2 ),
285-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
286-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
287-
},
288-
// 10 = H
289-
dollarSign: {
290-
icon: "blips_texturesheet.png",
291-
size: new google.maps.Size( customImageWidth, customImageHeight ),
292-
origin: new google.maps.Point( customImageWidth * 11, customImageHeight * 2 ),
293-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
294-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
295-
},
296-
golf: {
297-
icon: "blips_texturesheet.png",
298-
size: new google.maps.Size( customImageWidth, customImageHeight ),
299-
origin: new google.maps.Point( customImageWidth * 12, customImageHeight * 2 ),
300-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
301-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
302-
},
303-
ammuNation: {
304-
icon: "blips_texturesheet.png",
305-
size: new google.maps.Size( customImageWidth, customImageHeight ),
306-
origin: new google.maps.Point( customImageWidth * 13, customImageHeight * 2 ),
307-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
308-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
309-
},
310-
exile: {
311-
icon: "blips_texturesheet.png",
312-
size: new google.maps.Size( customImageWidth, customImageHeight ),
313-
origin: new google.maps.Point( customImageWidth * 14, customImageHeight * 2 ),
314-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
315-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
316-
},
317-
// 15 = H
62+
Airport : {x : 0, y: 2},
63+
Bar : {id: 93},
64+
BaseJump : {},
65+
CarWash : {id: 100, x: 4},
66+
ComedyClub : {id: 102},
67+
Dart : {},
68+
FIB : {id: 106, x: 9},
69+
DollarSign : {id: 108, x: 11},
70+
Golf : {},
71+
AmmuNation : {},
72+
Exile : {id: 112},
31873

319-
// ROW 4
320-
gunRange: {
321-
icon: "blips_texturesheet.png",
322-
size: new google.maps.Size( customImageWidth, customImageHeight ),
323-
origin: new google.maps.Point( customImageWidth * 1, customImageHeight * 3 ),
324-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
325-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
326-
},
327-
solomon: {
328-
icon: "blips_texturesheet.png",
329-
size: new google.maps.Size( customImageWidth, customImageHeight ),
330-
origin: new google.maps.Point( customImageWidth * 2, customImageHeight * 3 ),
331-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
332-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
333-
},
334-
stripClub: {
335-
icon: "blips_texturesheet.png",
336-
size: new google.maps.Size( customImageWidth, customImageHeight ),
337-
origin: new google.maps.Point( customImageWidth * 3, customImageHeight * 3 ),
338-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
339-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
340-
},
341-
tennis: {
342-
icon: "blips_texturesheet.png",
343-
size: new google.maps.Size( customImageWidth, customImageHeight ),
344-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight * 3 ),
345-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
346-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
347-
},
348-
sprint: {
349-
icon: "blips_texturesheet.png",
350-
size: new google.maps.Size( customImageWidth, customImageHeight ),
351-
origin: new google.maps.Point( customImageWidth * 7, customImageHeight * 3 ),
352-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
353-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
354-
},
355-
atvRace: {
356-
icon: "blips_texturesheet.png",
357-
size: new google.maps.Size( customImageWidth, customImageHeight ),
358-
origin: new google.maps.Point( customImageWidth * 8, customImageHeight * 3 ),
359-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
360-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
361-
},
362-
key: {
363-
icon: "blips_texturesheet.png",
364-
size: new google.maps.Size( customImageWidth, customImageHeight ),
365-
origin: new google.maps.Point( customImageWidth * 10, customImageHeight * 3 ),
366-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
367-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
368-
},
369-
movieTheater: {
370-
icon: "blips_texturesheet.png",
371-
size: new google.maps.Size( customImageWidth, customImageHeight ),
372-
origin: new google.maps.Point( customImageWidth * 11, customImageHeight * 3 ),
373-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
374-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
375-
},
376-
music: {
377-
icon: "blips_texturesheet.png",
378-
size: new google.maps.Size( customImageWidth, customImageHeight ),
379-
origin: new google.maps.Point( customImageWidth * 12, customImageHeight * 3 ),
380-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
381-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
382-
},
383-
fireStation: {
384-
icon: "blips_texturesheet.png",
385-
size: new google.maps.Size( customImageWidth, customImageHeight ),
386-
origin: new google.maps.Point( customImageWidth * 13, customImageHeight * 3 ),
387-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
388-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
389-
},
390-
marijuana: {
391-
icon: "blips_texturesheet.png",
392-
size: new google.maps.Size( customImageWidth, customImageHeight ),
393-
origin: new google.maps.Point( customImageWidth * 14, customImageHeight * 3 ),
394-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
395-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
396-
},
397-
animal: {
398-
icon: "blips_texturesheet.png",
399-
size: new google.maps.Size( customImageWidth, customImageHeight ),
400-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight * 3 ),
401-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
402-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
403-
},
74+
ShootingRange : {id: 119, x: 1, y: 3},
75+
Solomon : {},
76+
StripClub : {},
77+
Tennis : {},
78+
Triathlon : {id: 126, x: 7},
79+
OffRoadRaceFinish : {},
80+
Key : {id: 134, x: 10},
81+
MovieTheater : {},
82+
Music : {},
83+
Marijuana : {id: 140},
84+
Hunting : {},
40485

405-
// ROW 5
406-
armsTraffickingGround: {
407-
icon: "blips_texturesheet.png",
408-
size: new google.maps.Size( customImageWidth, customImageHeight ),
409-
origin: new google.maps.Point( 0, customImageHeight * 4 ),
410-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
411-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
412-
},
413-
// CBA doing weapons (won't be shown anyways..)
414-
pointOfInterest: {
415-
icon: "blips_texturesheet.png",
416-
size: new google.maps.Size( customImageWidth, customImageHeight ),
417-
origin: new google.maps.Point( customImageWidth * 13, customImageHeight * 4 ),
418-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
419-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
420-
},
421-
gtaPassive: {
422-
icon: "blips_texturesheet.png",
423-
size: new google.maps.Size( customImageWidth, customImageHeight ),
424-
origin: new google.maps.Point( customImageWidth * 14, customImageHeight * 4 ),
425-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
426-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
427-
},
428-
gtaUsingMenu: {
429-
icon: "blips_texturesheet.png",
430-
size: new google.maps.Size( customImageWidth, customImageHeight ),
431-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight * 4 ),
432-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
433-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
434-
},
435-
// ROW 6
436-
armour: {
437-
icon: "blips_texturesheet.png",
438-
size: new google.maps.Size( customImageWidth, customImageHeight ),
439-
origin: new google.maps.Point( customImageWidth * 2, customImageHeight * 5 ),
440-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
441-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
442-
},
443-
castle: {
444-
icon: "blips_texturesheet.png",
445-
size: new google.maps.Size( customImageWidth, customImageHeight ),
446-
origin: new google.maps.Point( customImageWidth * 3, customImageHeight * 5 ),
447-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
448-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
449-
},
450-
camera: {
451-
icon: "blips_texturesheet.png",
452-
size: new google.maps.Size( customImageWidth, customImageHeight ),
453-
origin: new google.maps.Point( customImageWidth * 7, customImageHeight * 5 ),
454-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
455-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
456-
},
457-
cuffs: {
458-
icon: "blips_texturesheet.png",
459-
size: new google.maps.Size( customImageWidth, customImageHeight ),
460-
origin: new google.maps.Point( customImageWidth * 10, customImageHeight * 5 ),
461-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
462-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
463-
},
464-
yoga: {
465-
icon: "blips_texturesheet.png",
466-
size: new google.maps.Size( customImageWidth, customImageHeight ),
467-
origin: new google.maps.Point( customImageWidth * 12, customImageHeight * 5 ),
468-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
469-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
470-
},
471-
cab: {
472-
icon: "blips_texturesheet.png",
473-
size: new google.maps.Size( customImageWidth, customImageHeight ),
474-
origin: new google.maps.Point( customImageWidth * 13, customImageHeight * 5 ),
475-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
476-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
477-
},
478-
therapy: {
479-
icon: "blips_texturesheet.png",
480-
size: new google.maps.Size( customImageWidth, customImageHeight ),
481-
origin: new google.maps.Point( customImageWidth * 14, customImageHeight * 5 ),
482-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
483-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
484-
},
485-
epsilon: {// some fucked up F
486-
icon: "blips_texturesheet.png",
487-
size: new google.maps.Size( customImageWidth, customImageHeight ),
488-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight * 5 ),
489-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
490-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
491-
},
86+
ArmsTraffickingGround : {id: 147, y: 4, x: 0},
87+
Nigel : {id: 149},
88+
AssaultRifle : {},
89+
Bat : {},
90+
Grenade : {},
91+
Health : {},
92+
Knife : {},
93+
Molotov : {},
94+
Pistol : {},
95+
RPG : {},
96+
Shotgun : {},
97+
SMG : {},
98+
Sniper : {},
99+
PointOfInterest: {id: 162},
100+
GTAOPassive : {},
101+
GTAOUsingMenu : {},
492102

493-
//ROW 7. Not much here we need really.
494-
jail2: {
495-
icon: "blips_texturesheet.png",
496-
size: new google.maps.Size( customImageWidth, customImageHeight ),
497-
origin: new google.maps.Point( customImageWidth * 10, customImageHeight * 6 ),
498-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
499-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
500-
},
501-
personalBike: {
502-
icon: "blips_texturesheet.png",
503-
size: new google.maps.Size( customImageWidth, customImageHeight ),
504-
origin: new google.maps.Point( customImageWidth *6, customImageHeight * 6 ),
505-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
506-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
507-
},
508-
personalCar: {
509-
icon: "blips_texturesheet.png",
510-
size: new google.maps.Size( customImageWidth, customImageHeight ),
511-
origin: new google.maps.Point( customImageWidth *7, customImageHeight * 6 ),
512-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
513-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
514-
},
515-
armsTraffickingAir:{
516-
icon: "blips_texturesheet.png",
517-
size: new google.maps.Size( customImageWidth, customImageHeight ),
518-
origin: new google.maps.Point( customImageWidth *11, customImageHeight * 6 ),
519-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
520-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
521-
},
522-
fairground: {
523-
icon: "blips_texturesheet.png",
524-
size: new google.maps.Size( customImageWidth, customImageHeight ),
525-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight * 6 ),
526-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
527-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
528-
},
103+
Minigun : {id: 173, x:0, y: 5},
104+
GrenadeLauncher : {},
105+
Armor : {},
106+
Castle : {},
107+
Camera : {id: 184, x: 7},
108+
Handcuffs : {id: 188, x: 11},
109+
Yoga : {id: 197},
110+
Cab : {},
111+
Shrink: {id: 205},
112+
Epsilon : {},
529113

530-
// ROW 8
531-
propertyManagement: {
532-
icon: "blips_texturesheet.png",
533-
size: new google.maps.Size( customImageWidth, customImageHeight ),
534-
origin: new google.maps.Point( 0, customImageHeight * 7 ),
535-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
536-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
537-
},
538-
alturist: {
539-
icon: "blips_texturesheet.png",
540-
size: new google.maps.Size( customImageWidth, customImageHeight ),
541-
origin: new google.maps.Point( customImageWidth * 1, customImageHeight * 7 ),
542-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
543-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
544-
},
545-
dollarSign2: {
546-
icon: "blips_texturesheet.png",
547-
size: new google.maps.Size( customImageWidth, customImageHeight ),
548-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight * 7 ),
549-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
550-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
551-
},
552-
hooker: {
553-
icon: "blips_texturesheet.png",
554-
size: new google.maps.Size( customImageWidth, customImageHeight ),
555-
origin: new google.maps.Point( customImageWidth * 7, customImageHeight * 7 ),
556-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
557-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
558-
},
559-
jail: {
560-
icon: "blips_texturesheet.png",
561-
size: new google.maps.Size( customImageWidth, customImageHeight ),
562-
origin: new google.maps.Point( customImageWidth * 9, customImageHeight * 7 ),
563-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
564-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
565-
},
566-
garage: {
567-
icon: "blips_texturesheet.png",
568-
size: new google.maps.Size( customImageWidth, customImageHeight ),
569-
origin: new google.maps.Point( customImageWidth * 10, customImageHeight * 7 ),
570-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
571-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
572-
},
573-
gtaMission: {
574-
icon: "blips_texturesheet.png",
575-
size: new google.maps.Size( customImageWidth, customImageHeight ),
576-
origin: new google.maps.Point( customImageWidth * 14, customImageHeight * 7 ),
577-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
578-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
579-
},
580-
gtaSurvival: {
581-
icon: "blips_texturesheet.png",
582-
size: new google.maps.Size( customImageWidth, customImageHeight ),
583-
origin: new google.maps.Point( customImageWidth * 15, customImageHeight * 7 ),
584-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
585-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
586-
},
587-
// Other basic icons
588-
dead: {
589-
icon: "blips_texturesheet.png",
590-
size: new google.maps.Size( customImageWidth, customImageHeight ),
591-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight * 8 ),
592-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
593-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
594-
},
595-
package: {
596-
icon: "blips_texturesheet.png",
597-
size: new google.maps.Size( customImageWidth, customImageHeight ),
598-
origin: new google.maps.Point( customImageWidth * 9, customImageHeight * 11 ),
599-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
600-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
601-
},
602-
garageForSale: {
603-
icon: "blips_texturesheet.png",
604-
size: new google.maps.Size( customImageWidth, customImageHeight ),
605-
origin: new google.maps.Point( customImageWidth * 3, customImageHeight * 10 ),
606-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
607-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
608-
},
609-
boat: {
610-
icon: "blips_texturesheet.png",
611-
size: new google.maps.Size( customImageWidth, customImageHeight ),
612-
origin: new google.maps.Point( customImageWidth * 4, customImageHeight * 13 ),
613-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
614-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
615-
},
616-
jerryCan : {
617-
icon: "blips_texturesheet.png",
618-
size: new google.maps.Size( customImageWidth, customImageHeight ),
619-
origin: new google.maps.Point( customImageWidth * 8, customImageHeight * 9 ),
620-
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
621-
scaledSize: new google.maps.Size( 1024/2,1024/2 )
114+
PersonalVehicleCar : {id: 225, x: 5, y: 6},
115+
PersonalVehicleBike : {},
116+
Custody : {id: 237, x:10},
117+
ArmsTraffickingAir : {id: 251},
118+
Fairground : {id: 266, x: 15},
119+
120+
PropertyManagement : {x: 0, y: 7},
121+
Altruist : {id: 269},
122+
Chop : {id: 273, x: 3},
123+
Hooker : {id: 279, x: 7},
124+
Friend : {},
125+
GTAOMission: {id: 304, x: 14},
126+
GTAOSurvival : {},
127+
128+
CrateDrop : { x:0, y:8},
129+
PlaneDrop : {},
130+
Sub : {},
131+
Race : {},
132+
Deathmatch : {},
133+
ArmWrestling : {},
134+
AmmuNationShootingRange : {id: 313},
135+
RaceAir : {},
136+
RaceCar : {},
137+
RaceSea : {},
138+
GarbageTruck : {id: 318, x:11},
139+
SafehouseForSale : {id: 350, x:14},
140+
Package : {},
141+
142+
MartinMadrazo: {x:0, y: 9},
143+
Boost: {id: 354},
144+
Devin : {},
145+
Marina : {},
146+
Garage : {},
147+
GolfFlag : {},
148+
Hangar : {},
149+
Helipad : {},
150+
JerryCan : {},
151+
Masks : {},
152+
HeistSetup : {},
153+
PickupSpawn : {id: 365},
154+
BoilerSuit : {},
155+
Completed : {},
156+
Rockets : {},
157+
GarageForSale : {},
158+
159+
HelipadForSale : {x: 0, y: 10},
160+
MarinaForSale : {},
161+
HangarForSale : {},
162+
Business : {id: 374},
163+
BusinessForSale : {},
164+
RaceBike : {},
165+
Parachute : {},
166+
TeamDeathmatch : {},
167+
RaceFoot : {},
168+
VehicleDeathmatch : {},
169+
Barry : {},
170+
Dom : {},
171+
MaryAnn : {},
172+
Cletus : {},
173+
Josh : {},
174+
Minute : {},
175+
176+
Omega: {x:0, y:11},
177+
Tonya : {},
178+
Paparazzo : {},
179+
Abigail : {id: 400},
180+
Blimp : {},
181+
Repair : {},
182+
Testosterone : {},
183+
Dinghy : {},
184+
Fanatic : {},
185+
CaptureBriefcase : {id: 408},
186+
LastTeamStanding : {},
187+
Boat : {},
188+
CaptureHouse : {},
189+
JerryCan2 : {id: 415, x: 14},
190+
CaptureAmericanFlag : {id: 419},
191+
192+
CaptureFlag : {x:0, y: 12},
193+
Tank : {},
194+
GunCar : {id: 426, x: 3},
195+
Speedboat : {},
196+
Heist : {},
197+
Stopwatch : {id: 430},
198+
DollarSignCircled : {},
199+
Crosshair2 : {},
200+
DollarSignSquared : {id: 434}
201+
}
202+
203+
function generateBlipShit(){
204+
var currentX = 0, currentY = 0, currentId = 0;
205+
for(var blipName in types){
206+
var blip = types[blipName];
207+
208+
if(typeof(blip.id) != 'undefined'){
209+
currentId = blip.id;
210+
}else{
211+
currentId ++;
212+
}
213+
214+
if(typeof(blip.x) != 'undefined'){
215+
currentX = blip.x;
216+
}else{
217+
currentX ++;
218+
}
219+
220+
if(typeof(blip.y) != 'undefined'){
221+
currentY = blip.y;
222+
}
223+
224+
MarkerTypes[currentId] = {
225+
icon: "blips_texturesheet.png",
226+
size: new google.maps.Size( customImageWidth, customImageHeight ),
227+
anchor: new google.maps.Point( customImageWidth/2, customImageHeight ),
228+
scaledSize: new google.maps.Size( 1024/2,1024/2 ),
229+
origin: new google.maps.Point( customImageWidth * currentX , customImageHeight * currentY ),
230+
}
622231
}
623-
};
232+
}
233+
234+
generateBlipShit();

0 commit comments

Comments
 (0)
Please sign in to comment.