tehp / OpenPoGoWeb

Web View for OpenPoGoBot
77 stars 58 forks source link

Remove Trainer Icons #117

Closed Chrischi- closed 2 years ago

Chrischi- commented 8 years ago

Remove Trainer Icons and use eg Pokéballs with random colors as trainer icon.

It requires only one icon or we could do it alone with CSS instead.

We could place a 'label' or 'hover' over the icon to identify which trainer we are looking at.

Chrischi- commented 8 years ago

it would look like this

map

122

Chrischi- commented 8 years ago

I used a quick and dirty code edit to test it.

It's not multi-user applicable.

Icon: pokeball (doesnt know the creator...)

main.js

   user_data[users[user_index]].marker = new google.maps.Marker({
      map: map,
      position: {lat: parseFloat(data.lat), lng: parseFloat(data.lng)},
      //icon: 'image/trainer/' + trainerSex[randomSex] + Math.floor(Math.random() * numTrainers[randomSex]) + '.png',
      icon: 'image/trainer/pokeball.png',
      zIndex: 2,
      //label: users[user_index]
    });
BobbyWibowo commented 8 years ago

I did something like this. Multi-bots shouldn't cause much issue, considering the Find button works just fine. trainer_icon