miércoles, 21 de marzo de 2012

Colocar varios marcadores en OpenLayers – PHD – Miami – Lawyers

Imagen de un ejemplo de varios marcadores en OpenLayers usando OpenStreetMap
Colocar varios marcadores enOpenLayers es muy sencillo.
Abajo coloco lo que se necesita con su correspondiente comentario para colocar un marcador en el mapa.

// Se instancia el layer Markers.
layer_marcador = new OpenLayers.Layer.Markers( "Marcador" );

// Agregar el layer marcador al mapa.
mapa.addLayer(layer_marcador);

tamanio = new OpenLayers.Size(21, 25);
offset = new OpenLayers.Pixel(-(tamanio.w / 2), -tamanio.h);

// Icono del marcador.
icono = new OpenLayers.Icon('../libs/OpenLayers-2.11/img/marker.png', tamanio, offset);

// Se agrega un marcador en el Layer de marcadores.
layer_marcador.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-57.58462, -25.31699).transform(
fromProjection, // Transformar from WGS 1984
toProjection // a Spherical Mercator Projection.
), icono));

// Se agrega otro marcador en el Layer de marcadores.
layer_marcador.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-57.56408, -25.31596).transform(
fromProjection, // Transformar from WGS 1984
toProjection // a Spherical Mercator Projection.

), icono.clone()));

// Se agrega otro marcador en el Layer de marcadores.
layer_marcador.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-57.60558, -25.32612).transform(

fromProjection, // Transformar from WGS 1984
toProjection // a Spherical Mercator Projection.

), icono.clone()));

// Se agrega otro marcador en el Layer de marcadores.
layer_marcador.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-57.60992, -25.30463).transform(
fromProjection, // Transformar from WGS 1984
toProjection // a Spherical Mercator Projection.

), icono.clone()));

Ven lo fácil que es colocar varios marcadores en el mapa.
Para ver ladocumentación.

OBS:
  • Tienen que notar que después de crear el icono para un marcador, el resto de los nuevos marcadores se utiliza el método clone de icono.
  • El mapa utilizado es OpenStreetMap
  • La versión del OpenLayers es 2.11
El código que esta debajo para descargar incluye el ejemplo completo de los 4 marcadores. Ya incluye la librería OpenLayers, pero sin sudocumentación y susejemplos.
Descargar:Código Fuente

seattle mesothelioma lawyer best small business phone and internet service selling structured settlement accident attorneys orange county new mexico mesothelioma lawyer a a accident attorneys most profitable internet business fort lauderdale personal injury lawyer structured settlment cash annuity magento dedicated hosting health care reform impact on employers atlanta car accident attorney california insurance car mesothelioma metastasis water damage repair tampa mesothelioma suit michigan injury lawyer Los Angeles water damage restoration purchasing annuity firm law mesothelioma car cheap insurance uk very structured settlement companies houston mesothelioma attorney addiction treatment program structured settlements for sale mesothelioma attorney dallas wisconsin mesothelioma attorney credit card images for website mesothelioma attorney assistance nist cloud security mesothelioma attorney directory best internet service for business auto insurance cost by state structured settlement broker buy my structured settlement mesothelioma survival rates doctorate of nursing programs structured settlement payments master in healthcare administration online afordable car insurance electric car model business class phone multicystic mesothelioma companies car insurance mesothelioma lawyer virginia nashville car accident lawyer structured settlement annuity companies jones act attorney dallas mesothelioma attorneys personal injury lawyers michigan easy business intelligence car accident lawyer pittsburgh structured settlement buyer phoenix car accident lawyer mesothelioma claim mesothelioma lawyer california mesothelioma attorneys california hosted predictive dialers define welfare mesothelioma care nyc injury lawyers best criminal lawyer in texas auto accident lawyer san francisco personal injury attorney ocala fl structured settlements annuities best car accident lawyers los angeles motorcycle accident lawyer car accident lawyer florida personal injury accident lawyer costa mesa dui lawyer structured settlement lump sum motorcycle accident attorney chicago personal injury attorney newport beach california motorcycle accident lawyer mesothelioma veterans dallas mesothelioma lawyer mesothelioma settlements injury attorney baton rouge annuity payment mesothelioma lawyer texas drug alcohol rehabilitation center mesothelioma attorneys business phone line and internet business management in healthcare structured settlement investments structured settlemen car accident lawyers san diego ft lauderdale personal injury attorney selling annuity business telecommunications services virginia car insurance rates tampa car accident lawyers truck accident attorney los angeles quotes car small business administration sba structured settlement purchasers mesothelioma attorney mesothelioma law suits drug rehab centers in new england mesothelioma rates mesothelioma attorney baltimore emergency response plan ppt skype push to talk masters programs in criminology austin dui lawyer alcohol treatment center florida sell my structured settlement payment personal injury attorney boca raton benign cystic mesothelioma auto accident injury lawyers businessinternet voip services for small business mesothelioma law firm dui lawyer scottsdale houston tx auto insurance michigan auto accident lawyer earthlink business internet st louis mesothelioma attorney alcohol addiction therapy accident attorney orange county host virtual machine buying structured settlements mesotheliama business voip service providers mesothelioma cancer center personal injury firm car accident lawyer phoenix saskatchewan auto insurance jg went what is structured settlement asbestos lawyers los angeles asbestos exposure lawyers selling my structured settlement mesothelioma attorney illinois workplace accident attorney caraccidentlawyer mesothelioma trial attorney cheaper insurance companies semi truck accident lawyers injury lawyer houston tx lawsuit mesothelioma mesothelioma settlement attorney lawyer mesothelioma baltimore mesothelioma attorneys academy of cosmetology janesville wi structered settlement it managing car accident lawyers los angeles structured settlement attorneys florida alcohol rehab mesothelioma litigation accident lawyer orange county personal injury attornies rehab centers in orlando florida jg wentworth peachtree houston motorcycle accident lawyer san diego truck accident attorney co op car insurance contact number compare small business phone systems business administration masters rogers business internet mesothelioma lawyer dallas e insurance auto quote business internet and phone service providers houston mesothelioma lawyers cash advance structured settlement mesothelioma cases california motorcycle accident lawyers sell my structured settlement masters degree in human resource management business landline phone deals washington mesothelioma attorney structured settlement sell new york mesothelioma law firm cash out structured settlement auto accident lawyer in los angeles structured settlement brokers mesothelioma lawsuit mesothelioma lawyer chicago austin tx auto insurance purchase annuities accident attorney fort lauderdale georgia truck accident lawyer colorado injury lawyers colorado springs car accident lawyer car accident lawyer tampa car insurance aurora il supportpeachtreecom structured settlement quote auto accident attorney Torrance mesothelioma lawyer asbestos cancer lawsuit mesothelioma lawyers san diego asbestos mesothelioma lawsuit trader car insurance verizon sip cloud tecnology attorney malpractice cases tucson car accident attorney tennessee mesothelioma lawyer fast cash for house florida automobile insurance company meso lawyer attorney baton rouge the latest developments in the treatment of mesothelioma citrix blogs tom brady draft pick how to change auto insurance companies irvine car accident lawyer mesothelioma claims workers compensation attorney atlanta ga car insurance office mesothelioma settlements amounts houston auto accident attorneys mesothelioma law firms mesothelioma lawyer massachusetts los angeles auto accident attorneys dui attorneys orange county mesothelioma law suit maritime lawyer houston arizona car accident lawyer nv auto bluehost vs ipage personal injury lawyer miami auto insurance yuba city ca best mesothelioma lawyers la personal injury lawyer purchase structured settlements business phones service raid web based tech support auto accident attorney denver co online masters degree in corporate communications california mesothelioma attorney peritoneal mesothelioma causes business internet phones best electronic health record state of california car insurance sell structured settlement calculator motorcycle accident attorney los angeles dui attorney tempe az auto accident attorney orange county structured settlement company asbestos cancer life expectancy mba in health administration car accident attorneys in los angeles my family app wrongful death lawyer los angeles mesotheolima mesothelioma attorney florida los angeles workers compensation lawyers sell your annuity broward county dui lawyer selling a structured settlement asterisk call center software payout annuity cash for my structured settlement best accident attorneys accident attorney san bernardino mesothelioma ct milwaukee personal injury lawyers mesothelioma diagnosis cell cycle regulation ppt accident and injury lawyer hughes net business cloud infrastructure as a service mesothelioma help lawyers for mesothelioma salesforce montreal car accident lawyers in los angeles telco solutions diagnosed with mesothelioma masters degree public administration personal accident attorney structured settlement need cash now business phone service comparison mesothelioma settlement amounts motorcycle accident attorney sacramento best business voip provider alcohol rehab center in florida fastest internet services personal injury attorney torrance mesothelioma risk factors katy auto insurance personal injury lawyers tampa cash for annuity payments car accident lawyer michigan ashely madis mesothelioma personal injury lawyers i need a personal injury lawyer las vegas criminal defense attorneys business voice mail service offshore accident lawyer car accident lawyers west palm beach ft lauderdale personal injury lawyer buy structured settlements network disaster recovery plan philadelphia mesothelioma lawyer hartford car accident lawyer workers compensation attorney Riverside webmail teamhealth best android business card scanner illinois mesothelioma lawyer work injury lawyer los angeles truck accident attorney texas car accident lawyer denver personal injury lawyer sarasota fl florida car insurance company accident lawyers in los angeles structured settlement cash out colorado auto accident attorney mesothelioma compensation colorado mesothelioma lawyers mesothelioma lawsuits online bank savings account average mesothelioma settlement integrated ehr meso attorney internet phone service for small business motorcycle accident lawyer california sell your structured settlement payments sell annuities onine backup utah mesothelioma lawyer virtual data room ak auto insurance java cloud development rehabilitation associates fairfield ct alabama mesothelioma lawyer tampa auto accident lawyer austin texas personal injury attorney arizona auto accident attorney attorney for injury internet fax telus cash out annuity factoring accounts receivable tax treatment mesothelioma attorney california california car accident attorney cash for annuity boca raton personal injury attorney car crash attorneys online school business management structured settlement agreement free online car quotes cloud identity and access management motorcycle accident lawyer san francisco personal injury attorney springfield mo structural settlement florida sex crime lawyer car accident law firms motorcycle accident lawyer san diego accident attorney in los angeles best personal injury lawyer dallas michigan motorcycle accident lawyer saving bank accounts mesotheioma philly accident lawyer selling annuity payments for cash charleston accident attorney sacramento car accident attorney chicago work injury lawyer boulder personal injury lawyers bus accident attorneys structured settlement blog austin texas bail bonds wellsfargo mortgage customer service virtual data room review business telephone providers in my area personal injury attorny treatments for mesothelioma attorney philadelphia denver car accident lawyers offshore injury lawyer mesothelioma drug structured settlements companies lost car insurance card best structured settlement companies city college in miami sell structured settlement payments bus accident attorney los angeles buying an annuity calculator tampa car accident vehicle information center buyer of structured settlement annuity buyers of structured settlements pharmacist jobs in chicago drug rehab in dallas structure settlements injury attorney milwaukee peruvianconnection co uk structured settlement buyers business internet houston building online stores business email web hosting auto accident lawyer miami predictive dailer car accident attorneys los angeles car accident lawyer in san diego auto insurance redlands ca newport beach dui lawyer

structured settlements calculator south florida personal injury attorney florida dui lawyers who bought brinks home security dui attorneys orlando structured settlement investments auto accident lawyers california cash for annuity georgia truck accident lawyer annuity cash out mesothelioma survival rates best android business card scanner car accident lawyer tampa structured settlement purchasers offshore accident lawyer mesothelioma law firms lump sum annuity mesothelioma cases auto insurance corpus christi tx mesothelioma lawsuit emergency response plan ppt virtual data room review wisconsin mesothelioma attorney city college in miami semi truck accident lawyers selling a structured settlement mesothelioma attorney illinois pittsburgh auto insurance florida automobile insurance company personal injury attorney boca raton mesothelioma lawyer california mesothelioma settlement amounts all about mesothelioma california motorcycle accident lawyers firm law mesothelioma colorado springs car accident attorney cash out structured settlement los angeles workers compensation lawyers structured settlement buyout mesothelioma incidence cloud computing security companies houston mesothelioma attorney st louis mesothelioma attorney structured settlemen integrated ehr annuity cash sell your structured settlement payments structured settlements annuities personal injury lawyer boca raton fl selling my structured settlement business voice mail service top business apps for iphone mesothelioma lawyer virginia addiction treatment program personal injury lawyer lafayette la hosted predictive dialers asbestos mesothelioma lawsuit cash for structured settlements houston motorcycle accident lawyer personal injury lawyer bronx sell structured settlements san diego truck accident attorney broward county dui lawyer american securities opportunities fund personal injury attorney orange county ca tennessee mesothelioma lawyer citrix blogs mesothelioma lawyer chicago business compliance package longdistance telephone providers mesothelioma suit structured settlement annuity companies lost car insurance card motorcycle accident attorneys personal injury lawyer sarasota fl dui lawyer scottsdale car accident lawyer florida criminal defense attorney mesa az auto accident attorney tampa private cloud jg went list of structured settlement companies accident attorney in los angeles structure settlement mesothelioma attorneys california structured settlement cash out mesothelioma trial attorney mesothelioma staging quotes car business phone direct delaware mesothelioma lawyer auto insurance redlands ca cheaper insurance companies michigan auto accident lawyer sell annuity california car accident attorney structured settlement buyer milwaukee injury lawyer structured settlement funding accident attorney san antonio mesothelioma claim structured settlement cash now car accident lawyer michigan best voip business phone service attorney lawyer mesothelioma small business administration sba new voip phone service buy my structured settlement structured settlement citrix xendesktop price vehicle information center injury lawyer virginia houston tx auto insurance motorcycle accident lawyer los angeles mesothelioma claims mesothelioma law firm virtual host server mesotheliama online insurance quote comparison mesothelioma compensation buyer of structured settlement annuity mesothelioma attorney florida selling structured settlement state of california car insurance magix phone system seattle mesothelioma lawyer how to get a masters in business administration mesothelioma care mesothelioma settlements amounts verizon wireless business phone colorado accident lawyers mesothelioma attorney california selling annuity cloud computering general business credit criminal defense attorney austin alcohol treatment center florida injury lawyer houston tx baltimore mesothelioma attorneys dui attorney tempe az business pbx system water damage wall repair car insurance Abilene TX mesothelioma lawyer texas allstate structured settlement annuity structered settlement lawsuit mesothelioma auto accident injury lawyers java application performance management why hosted voip masters degree public administration motorcycle accident lawyer san diego cheap business internet and phone service florida substance abuse treatment centers structured settlement broker mesothelioma lawyer dallas houston car accident lawyers personal injury lawyers fort lauderdale mesothelioma lawyer asbestos cancer lawsuit personal injury lawyer az arizona auto accident lawyer caraccidentlawyer mesotheioma free tech support software mesothelioma lawyer houston co op car insurance contact number attorney malpractice cases mesotheolima health care reform impact on employers structured settlement sell sell structured settlement payments car accident lawyer in san diego florida drug and alcohol treatment lawyers accidents new york mesothelioma law firm ehr inc dui lawyer phoenix new business phone service best structured settlement companies fast cash for house mesothelioma navy veterans structured settlement payments mesothelioma personal injury lawyers cloud to cloud backup car insurancs colorado auto accident attorney car insurance seattle washington trader car insurance sell annuity for cash is water damage covered by homeowners insurance truck accident attorney los angeles nist cloud security asbestos exposure lawyers telco solutions florida alcohol rehab attorney philadelphia sell an annuity mesothelioma lawsuits sell structured settlement supportpeachtreecom structured settlement quote advanced american telephones network trailer auto accident attorney Torrance los angeles car donation sell my structured settlement personal injury lawyers phoenix mesothelioma lawyers san diego personal injury attorney ocala fl open paas mesotheloma accident attorney orange county php web application development how do structured settlements work buying structured settlements mesothelioma attorney assistance mesothelioma rates katy auto insurance earthlink business internet meso lawyer tucson car accident attorney personal accident attorney cloud computing companies to invest in car insurance quotes florida online bluehost vs ipage motorcycle injury lawyer los angeles mesothelioma litigation buisness internet scalable cloud hosting drug programs in schools mesothelioma ct car quotes tumblr new mexico mesothelioma lawyer accident attorney san bernardino car accident attorneys in los angeles download citrix receiver for windows accident attorneys orange county business internet houston nyc personal injury lawyers mesothelioma settlements personal injury accident lawyer purchase structured settlements structured settlement quotes att business sales phone number los angeles auto accident attorneys sell your structured settlement car accident lawyers los angeles business high speed internet service major cloud service providers keller williams insurance car insurance for mesothelioma attorneys hipaa hosting providers structured settlement company ofx direct connect car accident lawyers san diego auto accident lawyer san francisco los angeles motorcycle accident lawyer offshore injury lawyer alcoholics rehabilitation california motorcycle accident lawyer drug rehabs org accident lawyers in los angeles hughes net business best accident attorneys injury attorney dallas investing in structured settlements structured settlement blog cell cycle regulation ppt houston accident lawyer auto accident defense attorney truck accident lawyer los angeles mesothelioma help washington mesothelioma attorney best mesothelioma lawyers philadelphia injury attorney personal injury lawyers michigan atlanta car accident attorney asterisk call center software hosted virtual desktop services dallas hvac service meso attorney diagnosed with mesothelioma motorcycle accident attorney chicago structured settlement need cash now philadelphia mesothelioma lawyer cloud computin san francisco motorcycle accident lawyer arizona auto accident attorney alcohol rehab center in florida water damage repair tampa motorcycle accident attorney sacramento national structured settlement trade association non injury accident attorney car accident lawyer denver car isnurance quotes maritime lawyer houston auto accident law firms online phd programs in public health businessinternet online savings accounts high interest california mesothelioma attorney buy structured settlements business credit car workplace accident attorney illinois mesothelioma lawyer mesothelioma attorney truck accident attorney texas splunk rex new jersey medical malpractice lawyer car accident lawyers west palm beach auto insurance cost by state florida car insurance company auto insurance in riverside ca arizona dui attorneys structural settlement accidents attorneys personal injury lawyer boca raton social work degree on line car accident attorney colorado springs lawyers for mesothelioma auto insurance grand junction hartford car accident lawyer san diego criminal defense attorneys afordable car insurance best dui attorney phoenix voice phone system colorado mesothelioma lawyers car accident lawyer nashville network disaster recovery plan car insurance aurora il ft lauderdale personal injury attorney business internet phones residential treatment centers florida average mesothelioma settlement phoenix car accident lawyer best pbx phone system for small business auto insurance policy sample most profitable internet business car accident lawyer san bernardino best internet service for business attorney baton rouge mesothelioma law suit motorcycle accident lawyer california outbound predictive dialer drug and alcohol rehab in florida utah mesothelioma lawyer detox in florida annuity payment personal injury lawyer long beach ca

Share:

Popular Posts

Recent Posts

Blog Archive

Con la tecnología de Blogger.