[Tool/Web/Other] SanMap - San Andreas in ****** Maps
#41

Quote:
Originally Posted by ikkentim
View Post
use an array, or otherwise, simply do not keep a reference to them outside of your for/each loop.
Have done so:
PHP Code:
    var GangZone = {
        
'array' : [
            
SanMap.getLatLngFromPos(1849.3774, -1054.2593),
            
SanMap.getLatLngFromPos(2069.4177, -1054.2593),
            
SanMap.getLatLngFromPos(2069.4177, -945.2972),
            
SanMap.getLatLngFromPos(1849.3774, -945.2972)],
        
'first' : [
            
SanMap.getLatLngFromPos(2069.4177, -1108.9666),
            
SanMap.getLatLngFromPos(2175.5276, -1108.9666),
            
SanMap.getLatLngFromPos(2175.5276, -945.2972),
            
SanMap.getLatLngFromPos(2069.4177, -945.2972),
        ]
    };
    var 
polygon1 = new ******.maps.Polygon({
        
pathGangZone['array','first'],
        
strokeColor'#FF0000',
        
strokeOpacity1.0,
        
strokeWeight1,
        
mapmap
    
});
    
zone.setMap(map); 
But on the map there is only the last gang area
Reply
#42

You still need separate polygons ಠ_ಠ
Reply
#43

Quote:
Originally Posted by ikkentim
View Post
You still need separate polygons ಠ_ಠ
I did it, thank you..
Reply
#44

It's Awesome , But Please Do It For Me And Show Me How Exactely and thank you very much ! +rep
Reply
#45

Awesome, But Please Do It For Me And Show Me How Please , and thank you very much Bro
Reply
#46

Quote:
Originally Posted by predvkill
View Post
Awesome, But Please Do It For Me And Show Me How Please , and thank you very much Bro
Check sanmap.ikkentim.com for an example. If you need help with Goooogle maps, search on Gooooogle
Reply
#47

Th@t w0rd cens0ring th0
Reply
#48

Code:
function SanMapZone(minX, minY, maxX, MaxY) {
		var triangleCoords = [
        	SanMap.getLatLngFromPos(minX, minY),
        	SanMap.getLatLngFromPos(maxX, minY),
        	SanMap.getLatLngFromPos(maxX, MaxY),
        	SanMap.getLatLngFromPos(minX, MaxY)
    	];
        var bermudaTriangle = new ******.maps.Polygon({
            paths: triangleCoords,
            strokeColor: '#FF0000',
            strokeOpacity: 0.8,
            strokeWeight: 2,
            fillColor: '#FF0000',
            fillOpacity: 0.35
        });
        bermudaTriangle.setMap(map);
        return bermudaTriangle;
    }
    function ClickZone(zone) {
	    ******.maps.event.addListener(zone, 'click', function (event) {
            var minpos = SanMap.getPosFromLatLng(zone.getPath().getAt(0));
            var maxpos = SanMap.getPosFromLatLng(zone.getPath().getAt(2));        
             alert(minpos.x + "," + minpos.y + "," + maxpos.x + "," + maxpos.y);
        });
	}
Reply
#49

Can you upload the tiles too?
Reply
#50

Quote:
Originally Posted by markoffk1n
Посмотреть сообщение
Can you upload the tiles too?
Can’t you generate them yourself?
Reply
#51

Can you share installed files?
I Can't install.
Reply
#52

Hello. I don't know why, but dont work with https:// link. The screen is white.
Reply
#53

Quote:
Originally Posted by AdamBryant95
Посмотреть сообщение
Hello. I don't know why, but dont work with https:// link. The screen is white.
Works fine for me, maybe your browser has cached some files wrong, try a refresh or a different browser (or look at the console)
Reply
#54

It worked. But i have a bigger problem now. About 10 minutes ago, the website send meg this:

"this page cannot load ****** maps correctly"

And when i see the log:

Quote:

util.js:227 ****** Maps JavaScript API warning: NoApiKeys https://developers.******.com/maps/d...es#no-api-keys
ax.j @ util.js:227
(anonymous) @ js?sensor=false:158
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:61
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:135
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:135
Xd @ js?sensor=false:63
Td.wa @ js?sensor=false:135
(anonymous) @ stats.js:1
util.js:227 ****** Maps JavaScript API warning: SensorNotRequired https://developers.******.com/maps/d...r-not-required
ax.j @ util.js:227
(anonymous) @ js?sensor=false:158
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:61
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:135
(anonymous) @ js?sensor=false:64
(anonymous) @ js?sensor=false:135
Xd @ js?sensor=false:63
Td.wa @ js?sensor=false:135
(anonymous) @ stats.js:1

Reply
#55

Yea g00gle added the requirement of adding a g00gle api key since a few months ago, haven’t updated the site since, will add it when I have time.
Reply
#56

If you have time, you should add 8196X8196 size support to the Tile Cutter program.
Reply
#57

Hi guys,
Can you look at: http://balkan-elite.info/mapa/ and see what I'm doing wrong.Because I have problem with loading map ( http://prntscr.com/kxit4z or when I zoom: http://prntscr.com/kxit7n )
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)