I think I get what you're trying to do. What you're asking for is how to
do the basic substitution of your server side C# encoded string into the
javascript call:
polyline = GPolyline.fromEncoded({color: 'Red',weight: 4,opacity:
0.6,points: strEncod, levels: 'PMP',numLevels: 18,zoomFactor: 1});
i.e. strEncod needs to be replaced with the C# resulting encoded string.
If this is the case then the question becomes when is your server-side
code invoked? Is it on an initial load or is it based on a client-side
event (or perhaps both)? Your issue is then making a server-side request
and substituting the result into the client-side call. There are many
options, including:
http://code.google.com/apis/maps/documentation/services.html#XML_Request
s
I hope this is I'm sure you'll let us know if we're guessing wrong again
;)
Stephen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---