varios multiple marcadores google example agregar google-maps google-maps-api-3

multiple - nombres estándar de google maps v3 icon/shadow(equiv. de G_DEFAULT_ICON en v2)



google.maps.marker example (3)

Estoy cambiando los tipos de íconos de los marcadores de google maps entre uno por defecto y otro (creado por google chart api). Para volver al ícono estándar, utilizo:

marker.setIcon(''http://maps.google.com/mapfiles/marker.png'');

Para otro ícono que uso:

marker.setIcon(''http://maps.google.com/mapfiles/marker_yellow.png'');

La pregunta es:

  1. ¿La URL que uso es realmente el "estándar" (canónico)? ¿Está seguro de que Google no lo cambiará?

  2. sería mejor usar alguna constante como G_DEFAULT_ICON en gmaps api v2. ¿Hay algo similar en api v3?

  3. de lo contrario, ¿dónde se puede encontrar la lista de URL canónicas de iconos / sombras que funcionan durante toda la vida de google api v3?

La misma pregunta para las sombras: cuando configuro el icono, cómo obtener la sombra estándar en lugar de usar feo m.setShadow(new google.maps.MarkerImage(''http://maps.gstatic.com/mapfiles/shadow50.png'', null, null, new google.maps.Point(10, 34))) ? (Tenga en cuenta que getShadow() no le dirá nada, ya que devuelve null en el icono predeterminado con la sombra predeterminada).

PD: hay algunas API de iconos dinámicos, pero ahora todas están en desuso y no se ha encontrado ninguna solución .


Investigué un poco en la página de creación de Google Maps - Mis lugares y encontré un montón de iconos predeterminados. No estoy seguro de si van a permanecer para siempre o no, pero aquí hay una lista de casi cien para que vaya en la dirección correcta con los iconos predeterminados:

Vista previa PNG

https://maps.gstatic.com/intl/en_us/mapfiles/ms2/iconm.png

Fila 1

Puntos

https://maps.gstatic.com/mapfiles/ms2/micons/blue-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/red-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/green-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/ltblue-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/yellow-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/purple-dot.png

https://maps.gstatic.com/mapfiles/ms2/micons/pink-dot.png

Dot Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/msmarker.shadow.png

Fila 2

Sólido

https://maps.gstatic.com/mapfiles/ms2/micons/blue.png

https://maps.gstatic.com/mapfiles/ms2/micons/red.png

https://maps.gstatic.com/mapfiles/ms2/micons/green.png

https://maps.gstatic.com/mapfiles/ms2/micons/lightblue.png

https://maps.gstatic.com/mapfiles/ms2/micons/yellow.png

https://maps.gstatic.com/mapfiles/ms2/micons/purple.png

https://maps.gstatic.com/mapfiles/ms2/micons/pink.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/msmarker.shadow.png

Fila 3

Pushpins

https://maps.gstatic.com/mapfiles/ms2/micons/blue-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/red-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/grn-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/ltblu-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/ylw-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/purple-pushpin.png

https://maps.gstatic.com/mapfiles/ms2/micons/pink-pushpin.png

Pushpin Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/pushpin_shadow.png

Fila 4

Restaurante

https://maps.gstatic.com/mapfiles/ms2/micons/restaurant.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/restaurant.shadow.png

Cafetería

https://maps.gstatic.com/mapfiles/ms2/micons/coffeehouse.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/coffeehouse.shadow.png

Bar

https://maps.gstatic.com/mapfiles/ms2/micons/bar.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/bar.shadow.png

Bar

https://maps.gstatic.com/mapfiles/ms2/micons/snack_bar.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/snack_bar.shadow.png

Hombre

https://maps.gstatic.com/mapfiles/ms2/micons/man.png

Sombra:

https://maps.gstatic.com/mapfiles/ms2/micons/man.shadow.png

Mujer

https://maps.gstatic.com/mapfiles/ms2/micons/woman.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/woman.shadow.png

Silla de ruedas accesible

https://maps.gstatic.com/mapfiles/ms2/micons/wheel_chair_accessible.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/wheel_chair_accessible.shadow.png

Fila 5

Estacionamiento

https://maps.gstatic.com/mapfiles/ms2/micons/parkinglot.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/parkinglot.shadow.png

Taxi

https://maps.gstatic.com/mapfiles/ms2/micons/cabs.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/cabs.shadow.png

Autobús

https://maps.gstatic.com/mapfiles/ms2/micons/bus.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/bus.shadow.png

Camión

https://maps.gstatic.com/mapfiles/ms2/micons/truck.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/truck.shadow.png

Carril

https://maps.gstatic.com/mapfiles/ms2/micons/rail.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/rail.shadow.png

Avión

https://maps.gstatic.com/mapfiles/ms2/micons/plane.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/plane.shadow.png

Transportar

https://maps.gstatic.com/mapfiles/ms2/micons/ferry.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/ferry.shadow.png

Fila 6

Helicóptero

https://maps.gstatic.com/mapfiles/ms2/micons/helicopter.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/helicopter.shadow.png

Subterraneo

https://maps.gstatic.com/mapfiles/ms2/micons/subway.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/subway.shadow.png

Tranvía

https://maps.gstatic.com/mapfiles/ms2/micons/tram.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/tram.shadow.png

Información

https://maps.gstatic.com/mapfiles/ms2/micons/info.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/info.shadow.png

Círculo de información

https://maps.gstatic.com/mapfiles/ms2/micons/info_circle.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/info_circle.shadow.png

Bandera

https://maps.gstatic.com/mapfiles/ms2/micons/flag.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/flag.shadow.png

Lluvioso

https://maps.gstatic.com/mapfiles/ms2/micons/rainy.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/rainy.shadow.png

Fila 7

Agua

https://maps.gstatic.com/mapfiles/ms2/micons/water.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/water.shadow.png

Copo de nieve simple

https://maps.gstatic.com/mapfiles/ms2/micons/snowflake_simple.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/snowflake_simple.shadow.png

Marina

https://maps.gstatic.com/mapfiles/ms2/micons/marina.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/marina.shadow.png

Pescar

https://maps.gstatic.com/mapfiles/ms2/micons/fishing.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/fishing.shadow.png

Navegación

https://maps.gstatic.com/mapfiles/ms2/micons/sailing.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/sailing.shadow.png

Nadando

https://maps.gstatic.com/mapfiles/ms2/micons/swimming.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/swimming.shadow.png

Esquí

https://maps.gstatic.com/mapfiles/ms2/micons/ski.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/ski.shadow.png

Fila 8

Árbol

https://maps.gstatic.com/mapfiles/ms2/micons/tree.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/tree.shadow.png

Hoguera

https://maps.gstatic.com/mapfiles/ms2/micons/campfire.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/campfire.shadow.png

Picnic

https://maps.gstatic.com/mapfiles/ms2/micons/picnic.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/picnic.shadow.png

Terreno de camping

https://maps.gstatic.com/mapfiles/ms2/micons/campground.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/campground.shadow.png

estación de guardabosques

https://maps.gstatic.com/mapfiles/ms2/micons/rangerstation.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/rangerstation.shadow.png

Baños

https://maps.gstatic.com/mapfiles/ms2/micons/toilets.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/toilets.shadow.png

Punto de interés (POI)

https://maps.gstatic.com/mapfiles/ms2/micons/POI.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/POI.shadow.png

Fila 9

Caminante

https://maps.gstatic.com/mapfiles/ms2/micons/hiker.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/hiker.shadow.png

Ciclismo

https://maps.gstatic.com/mapfiles/ms2/micons/cycling.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/cycling.shadow.png

Motociclismo

https://maps.gstatic.com/mapfiles/ms2/micons/motorcycling.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/motorcycling.shadow.png

Cabalgatas

https://maps.gstatic.com/mapfiles/ms2/micons/horsebackriding.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/horsebackriding.shadow.png

Complejo deportivo

https://maps.gstatic.com/mapfiles/ms2/micons/sportvenue.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/sportvenue.shadow.png

Golfista

https://maps.gstatic.com/mapfiles/ms2/micons/golfer.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/golfer.shadow.png

Sendero

https://maps.gstatic.com/mapfiles/ms2/micons/trail.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/trail.shadow.png

Fila 10

Compras

https://maps.gstatic.com/mapfiles/ms2/micons/shopping.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/shopping.shadow.png

Películas

https://maps.gstatic.com/mapfiles/ms2/micons/movies.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/movies.shadow.png

Tienda de comestibles

https://maps.gstatic.com/mapfiles/ms2/micons/grocerystore.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/grocerystore.shadow.png

Tienda Convienance

https://maps.gstatic.com/mapfiles/ms2/micons/convienancestore.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/convienancestore.shadow.png

Letras

https://maps.gstatic.com/mapfiles/ms2/micons/arts.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/arts.shadow.png

Negocio de jardín de casa

https://maps.gstatic.com/mapfiles/ms2/micons/homegardenbusiness.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/homegardenbusiness.shadow.png

Electrónica

https://maps.gstatic.com/mapfiles/ms2/micons/electronics.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/electronics.shadow.png

Fila 11

Mecánico

https://maps.gstatic.com/mapfiles/ms2/micons/mechanic.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/mechanic.shadow.png

Gas

https://maps.gstatic.com/mapfiles/ms2/micons/gas.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/gas.shadow.png

Bienes raíces

https://maps.gstatic.com/mapfiles/ms2/micons/realestate.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/realestate.shadow.png

Salón

https://maps.gstatic.com/mapfiles/ms2/micons/salon.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/salon.shadow.png

Dólar

https://maps.gstatic.com/mapfiles/ms2/micons/dollar.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/dollar.shadow.png

Euro

https://maps.gstatic.com/mapfiles/ms2/micons/euro.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/euro.shadow.png

Yen

https://maps.gstatic.com/mapfiles/ms2/micons/yen.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/yen.shadow.png

Fila 12

Cuerpo de Bomberos

https://maps.gstatic.com/mapfiles/ms2/micons/firedept.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/firedept.shadow.png

Hospitales

https://maps.gstatic.com/mapfiles/ms2/micons/hospitals.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/hospitals.shadow.png

Alojamiento

https://maps.gstatic.com/mapfiles/ms2/micons/lodging.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/lodging.shadow.png

Teléfono

https://maps.gstatic.com/mapfiles/ms2/micons/phone.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/phone.shadow.png

Precaución

https://maps.gstatic.com/mapfiles/ms2/micons/caution.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/caution.shadow.png

Terremoto

https://maps.gstatic.com/mapfiles/ms2/micons/earthquake.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/earthquake.shadow.png

Rocas caídas

https://maps.gstatic.com/mapfiles/ms2/micons/fallingrocks.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/fallingrocks.shadow.png

Fila 13

Oficina de correos - Estados Unidos

https://maps.gstatic.com/mapfiles/ms2/micons/postoffice-us.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/postoffice-us.shadow.png

Policía

https://maps.gstatic.com/mapfiles/ms2/micons/police.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/police.shadow.png

Soleado

https://maps.gstatic.com/mapfiles/ms2/micons/sunny.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/sunny.shadow.png

Parcialmente nublado

https://maps.gstatic.com/mapfiles/ms2/micons/partly_cloudy.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/partly_cloudy.shadow.png

Volcán

https://maps.gstatic.com/mapfiles/ms2/micons/volcano.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/volcano.shadow.png

Cámara

https://maps.gstatic.com/mapfiles/ms2/micons/camera.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/camera.shadow.png

Cámara web

https://maps.gstatic.com/mapfiles/ms2/micons/webcam.png

Shadow: https://maps.gstatic.com/mapfiles/ms2/micons/webcam.shadow.png


marker.setIcon(null) colocará el icono predeterminado con sombra estándar ...

Sin embargo, todavía echo de menos una lista "oficial" de iconos y sus URL , o algunas constantes como G_DEFAULT_ICON para lograr esto.