On Nov 25, 1:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 25, 12:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > On Nov 25, 11:21 am, Mudassar <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > It may be adumb question but I am not that expert in google maps and > > > any help is appericiated. > > > > Well, I want to highlight a highway like it is highlighted when you > > > find directions. > > > > * - I have list of most famous US highways. > > > * - Each Highway has its own page on my site having a google map and > > > other info about that highway. > > > * - In that Map i want to Highlight that highway and that also inside > > > a certain state. > > > LIke : > > > > Highway 97, OR > > > > Mean Highway 97 in Oregon State. > > > > So i want to highlight whole part of the highway 97 that is in Oregon > > > state. For that I have Lat/Lng of starting point and its end point in > > > OR state. So now I want to highlight only this highway between these > > > two points. > > > > I think i make it clear , if not let me know. How can I do this ? > > > If you are looking for something like > > this:http://www.geocodezip.com/GenericMapBrowser.asp?filename=I5Polyline.xml > > > The GDirections class will return a polyline that is the "best > > directions" between those 2 point. If it leaves the highway you want > > you might need to add waypoints to keep it on the route you want. > > > For example, it looks like this path leaves I-5 and travels on I-805 > > for 46.6 > > miles:http://www.geocodezip.com/example_geo2.asp?addr1=(32.54281,-117.02993... > > > To improve performance, you may want to investigate encoding the > > polylines. > > Here is a page with an encoded version of the same polyline (not quite > an apples to apples comparison, as the other page had the overhead of > the GXmlHttp call):http://www.geocodezip.com/I5Polyline.html > > I used Mark McClure's polyline > encoder:http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/encodeFor...
Compare (encoded polyline): http://www.geocodezip.com/GenericMapBrowser.asp?filename=I5Polyline_encoded.xml To (unencoded polyline): http://www.geocodezip.com/GenericMapBrowser.asp?filename=I5Polyline.xml -- Larry --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
