I trying to make a map for the Internet provider and I want to click on Mark show coverage from the antenna. Omnidirectional antennas are easy, because it is an ordinary circle. To directional antennas but I need a circular sector. Unfortunately, I do not know how to do it.
Link on map http://178.77.202.130/mapa/ On 26 srp, 23:46, "[email protected]" <[email protected]> wrote: > On Aug 26, 2:00 pm, Radicz <[email protected]> wrote: > > > Hi everyone, sorry for my English. > > > I need help to create circular sector with polygons. I found > > thishttp://pastebin.com/f3b2cdea8, but I have no idea how it works or how > > to integrate it into my cource code. Could someone please advise me? > > Thanks for any answers > > I'm not sure what you are trying to accomplish. Please post a link to > your map rather than > code:http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd50991... > > This may help:http://www.geocodezip.com/v3_polyline_example_arc.html > > -- Larry > > > > > My source code > > > var PoleBodu = [ > > ['Spartakiádní', 50.68504754096478, > > 13.990276157855988, ..........,null], > > ['Dukelských hrdinù', 50.683881737055, 13.998518586158752,......., > > null] > > ]; > > > function initialize() > > { > > var Nastaveni = { > > zoom: 12, > > center: new google.maps.LatLng(50.68681982238762, > > 14.000144215759285), > > mapTypeId: google.maps.MapTypeId.ROADMAP > > } > > > map = new google.maps.Map(document.getElementById("mapa"), > > Nastaveni); > > InfoOkno = new google.maps.InfoWindow({maxWidth:350}); > > > for (var i = 0; i < PoleBodu.length; i++) > > { > > VytvorBody(PoleBodu[i]); > > } > > } > > > function VytvorBody(PoleBod) > > { > > var icona = new google.maps.MarkerImage(PoleBod[5], new > > google.maps.Size(39, 47), new google.maps.Point(0,0), new > > google.maps.Point(0, 33)); > > var stin = new google.maps.MarkerImage(PoleBod[6], new > > google.maps.Size(35, 35), new google.maps.Point(0,0), new > > google.maps.Point(-5, 27)); > > var klikarena = {coord: [0,0,40,40],type: 'rect'}; > > > var pozice = new google.maps.LatLng(PoleBod[1], PoleBod[2]); > > var bod = new google.maps.Marker({ > > position: pozice, > > map: map, > > name: PoleBod[0], > > shadow: stin, > > /*icon: icona, */ > > shape: klikarena, > > zIndex: PoleBod[3] > > }); > > > PoleBod[7] = bod; > > > google.maps.event.addListener(bod, 'click', function() > > { > > InfoOkno.close(); > > VytvorInfoOkno(InfoOkno, map, this, PoleBod); > > $("#tabs").tabs(); > > OzariProstor(2000, map, bod, PoleBod); > > }); > > > } > > > function OzariProstor(radius, map, bod) //funkce tvorici polygon > > { > > if(!bod.highlighted) > > { > > bod.highlighted = true; > > var circle = new google.maps.Circle({ > > map: map, > > radius: radius, > > fillColor: "#B43116", > > strokeWeight:2, > > strokeColor:"#7D0A05" > > }); > > circle.bindTo('center', bod, 'position'); > > } > > > } > > > function VytvorInfoOkno(InfoOkno, where, which, PoleBod) > > { > > if (PoleBod[7] == which ) > > { > > InfoOkno.setContent(PoleBod[4]); > > InfoOkno.open(where, which); > > } > > > }- Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
