Multimap API Development Forum ForumDiscussion forum for developing applications using Multimap’s JavaScript and Web service APIs© 2009 Microsoft Corporation. All rights reserved.Thu, 26 Nov 2009 09:49:09 Z5ecc965d-0d9d-4e4d-b3e2-9188c4f549b5http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/221f96c2-f7e6-4c68-b187-b81ac0993abchttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/221f96c2-f7e6-4c68-b187-b81ac0993abcdoconlinehttp://social.msdn.microsoft.com/Profile/en-US/?user=doconlineEncoding Russian addresses?I am trying to import a list of Russian suppliers and not having any luck. <br/> <br/> An example address is<br/> Трубная пл., д.2 <br/> Moscow<br/> 107031<br/> Russian Federation<br/> <br/> Multimap geocodes asfar as Moscow, and then stops. Is there a way around this, without having to convert all street names to latin text, as there are hundreds, and this would be very impractical?<br/> <br/> Thanks in advance for your help,<br/> regards,<br/> Paul<br/>Tue, 24 Nov 2009 17:09:38 Z2009-11-26T09:49:08Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/7e07ce34-1b85-4550-9cc9-d20c8f86bf1bhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/7e07ce34-1b85-4550-9cc9-d20c8f86bf1bhuntphttp://social.msdn.microsoft.com/Profile/en-US/?user=huntpAPI 1.2 MarkerHello,<br/> <br/> It is my first time using the multimap api and I have one issue. I create and insert the marker for the current position, however all browser insert the marker in the ocean (off the base tip of Africa) instead of my current position, except for Opera that positions the marker correctly.<br/> <br/> Could some one review my code and tell me if I got it wrong and how i can correct it. Thanks.<br/> <br/> <div style="color:Black;background-color:White"> <pre>&lt;script type=<span style="color:#a31515">&quot;text/javascript&quot;</span> &gt; <span style="color:Blue">function</span> onLoad() { mapviewer = MMFactory.createViewer ( document.getElementById( <span style="color:#a31515">'mapviewer'</span> ) ); mapviewer.goToPosition ( <span style="color:Blue">new</span> MMAddress( { postal_code : <span style="color:#a31515">'SW4'</span> , <span style="color:#a31515">'country_code'</span> : <span style="color:#a31515">'GB'</span> } ) , 16 ); mapviewer.addWidget ( <span style="color:Blue">new</span> MMMapTypeWidget() ); mapviewer.addWidget ( <span style="color:Blue">new</span> MMPanZoomWidget() ); <span style="color:Blue">var</span> marker = mapviewer.createMarker ( mapviewer.getCurrentPosition() ); } MMAttachEvent( window, <span style="color:#a31515">'load'</span> , onLoad ); &lt;/script&gt; </pre> </div>Fri, 13 Nov 2009 10:57:57 Z2009-11-19T15:07:11Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/31bc85ea-551b-46ee-ac5b-362a7a5fa97ehttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/31bc85ea-551b-46ee-ac5b-362a7a5fa97eKenny MacLeodhttp://social.msdn.microsoft.com/Profile/en-US/?user=Kenny%20MacLeodXML Portal geo search - combined fieldsThe documenation for the XML Portal's geographical search service (http://www.multimap.com/share/documentation/products_and_modules/xml_portal.htm#geo) indicates that the street and town need to be specified as two distinct parameters in the service request.<br/> <br/> This is a problem, since when you have applications with a free-text search field, we have no means to split this up into street and town. <br/> <br/> Does this service, or a similar service, provide a means to take a single search term, and intelligently have it figure out which bits of the term refer to what?Tue, 17 Nov 2009 13:32:32 Z2009-11-18T09:44:40Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d0c4eb09-cba7-4f50-8745-b37f510e4c0chttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d0c4eb09-cba7-4f50-8745-b37f510e4c0cFenricshttp://social.msdn.microsoft.com/Profile/en-US/?user=FenricsMM_API_ERROR_SERVICE_NOT_PROVISIONED Issue with OpenAPIHey all, <div><br/></div> <div>I'm having a sleight unknown issue with the OpenAPI. After developing the application that uses the API for many months with it working fine, then coming back to the particular class of code which handles the API requests I find the requests are in-fact reject with the above error code. I'm using the OpenAPI, version 1.2 and not using SSL.</div> <div><br/></div> <div>Example URI request the class used:</div> <div> <pre>http://developer.multimap.com/API/route/APIKEY/1.2/?qs_1=ADDRESS1&amp;countryCode_1=GB&amp;qs_2=ADDRESS2&amp;countryCode_2=GB</pre> The support guy on the phone reckons this kind of error comes up with the commercial API only but we're not touching it at the moment which begs more questions to why this error is cropping us.</div> <div><br/></div> <div>Thank you ever so much for reading and any ideas you possibly have that could help resolve this issue.</div> <div><br/></div> <div>Kind regards,</div> <div><br/></div> <div>Nathan</div>Thu, 12 Nov 2009 12:38:06 Z2009-11-16T10:32:48Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/549cfadb-1118-4447-b42f-33b0754f5ba8http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/549cfadb-1118-4447-b42f-33b0754f5ba8Rsootarsinghttp://social.msdn.microsoft.com/Profile/en-US/?user=RsootarsingCentering a map on an Easting and NorthingIs it possible to center a map on an Easting &amp; Northing rather than Lat/Lon?<br/>Tue, 10 Nov 2009 17:06:46 Z2009-11-11T11:01:19Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/5df32106-7aa5-4c87-8e53-7a27db7ed2f5http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/5df32106-7aa5-4c87-8e53-7a27db7ed2f5webyorkhttp://social.msdn.microsoft.com/Profile/en-US/?user=webyorkMap preferencesHi there<br/> <br/> On our implementation of the API, we use only OS Landranger 1:50k and Explorer 1:25k maps.<br/> <br/> To facilitate this we use the code:<br/> <pre>function onLoad() {<br/> mapviewer = new MultimapViewer( document.getElementById( 'mapviewer' ) );<br/> var newprefs = [];<br/> newprefs.push(904);<br/> newprefs.push(932); var maptype = MM_WORLD_MAP;<br/> MMDataResolver.setDataPreferences( maptype, newprefs ); <br/> </pre> This works fine. However explorer maps (932) only show at zoom level 16, by which point the map looks very large. Is there any way we could make explorers show at zoom 15 (and maybe 14) and just use the landrangers at 13?<br/> <br/> Cheers.Thu, 22 Oct 2009 08:41:16 Z2009-11-11T11:01:46Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d83a55ec-82d2-4c94-af55-9a2d29eceacfhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d83a55ec-82d2-4c94-af55-9a2d29eceacfjen_Dhttp://social.msdn.microsoft.com/Profile/en-US/?user=jen_DIntermittent problem getting XML lat/lonHi, <br/> <br/> I have a problem with Geocode! I have been getting the lat/lon from your XML files based on postcode. My map has been online and working fine for about a year now. The other week I discovered that the the PHP code had stopped working which I was using to get the lat and lon from your XML files, although it still worked for me from a web browser...<br/> <br/> http://developer.multimap.com/API/geocode/1.2/[api key]?qs=[postcode]<br/> <br/> My own XML file, which was been automatically populated with the lat/lon by a cron job, was suddenly coming up with blanks for lat and lon. I hadn't made any changes to my code.<br/> <br/> Anyway, I thought I'd create a simple test file to try to see what was happening (see below) so I did that, and couldn't find the problem, so I gave up for a while... then I tried my test file a few days later aiming to really spend some time delving in to the problem.... and it was magically working again, and echoing the latitute and longitute in my array perfectly!<br/> <br/> BUT, i've noticed again today that the lat and lon's have disappeared again, so i went back to my test file (still the same one!) and it had stopped working again.<br/> <br/> I just wondered if you had any ideas what the problem could be? Could you run this file and see if it works for you? Has there been an intermittent problem on the XML geocode or has somthing changed recently (and changed back again, then changed back)? Could I be making too many requests or something? would it help if i gave you my API key?<br/> <br/> Many thanks indeed,<br/> <br/> Kind regards,<br/> <br/> Jen<br/> <br/> <pre>&lt;?php class xml_story{ var $lat, $lon; } function startTag($parser, $data){ global $current_tag; $current_tag .= &quot;*$data&quot;; } function endTag($parser, $data){ global $current_tag; $tag_key = strrpos($current_tag, '*'); $current_tag = substr($current_tag, 0, $tag_key); } function contents($parser, $data){ global $current_tag, $xml_lat_key, $xml_lon_key, $counter, $story_array; switch($current_tag){ case $xml_lat_key: $story_array[$counter] = new xml_story(); $story_array[$counter]-&gt;lat = $data; break; case $xml_lon_key: $story_array[$counter]-&gt;lon = $data; $counter++; break; } } $xml_file = &quot;http://developer.multimap.com/API/geocode/1.2/[api key]?qs=SY208NR&quot; . str_replace(' ', '',$location ); $xml_lat_key = &quot;*RESULTS*LOCATION*POINT*LAT&quot;; $xml_lon_key = &quot;*RESULTS*LOCATION*POINT*LON&quot;; $story_array = array(); $counter = 0; $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, &quot;startTag&quot;, &quot;endTag&quot;); xml_set_character_data_handler($xml_parser, &quot;contents&quot;); $fp = fopen($xml_file, &quot;rb&quot;) or die(&quot;Could not open file&quot;); $data = stream_get_contents($fp) ; if(!(xml_parse($xml_parser, $data, feof($fp)))){ die(&quot;Error on line &quot; . xml_get_current_line_number($xml_parser)); } xml_parser_free($xml_parser); fclose($fp); for($x=0;$x&lt;count($story_array);$x++){ $lat = $story_array[$x]-&gt;lat; $lon = $story_array[$x]-&gt;lon; } echo $xml_file; echo '&lt;br/&gt;'; print_r($story_array); ?&gt;</pre> <br/> <br/>Mon, 02 Nov 2009 15:25:49 Z2009-11-11T11:02:09Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6a33976c-d2e7-46db-a719-6e4fc3df540bhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6a33976c-d2e7-46db-a719-6e4fc3df540bVEHICALLhttp://social.msdn.microsoft.com/Profile/en-US/?user=VEHICALLMultimap API error I'm an happy user since a while of the Multimap API but I've seen this morning an incorrect behaviour on my site, and this problem occurs with the sample &quot;Options&quot; too...<br/> <br/> If you double-click on the displayed map, the clicked point is correctly centered afterwards. But if you create a zoom-box, the center of the zoom-box is shifted to East after the map updating !<br/> <br/> I don't know since when this problem occurs, it could be a lot of time... A few months ago, this problem was inexistent and I don't have changed the related coding since then.<br/> <br/> Thanks in advance for your awaited fix and congrats for this powerful API,<br/> Germain<br/> <br/> PS: no way to create this thread using the French interface because the Multimap API forum isn't listed at all !!!Fri, 18 Sep 2009 07:22:01 Z2009-11-11T11:02:46Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6048251a-60e9-4558-a2d1-f8aa3fafb474http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6048251a-60e9-4558-a2d1-f8aa3fafb474aidangranthttp://social.msdn.microsoft.com/Profile/en-US/?user=aidangrantChanging the CursorJust wondering if I can change the cursor shown over the whole map object?<br/><br/>I've tried setting the css style (&quot;cursor: pointer;&quot;) but to no avail...Mon, 26 Oct 2009 15:41:43 Z2009-11-11T12:30:21Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/adb205f5-ea33-4800-aa23-905787c4c06fhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/adb205f5-ea33-4800-aa23-905787c4c06fPaulAtTheHughttp://social.msdn.microsoft.com/Profile/en-US/?user=PaulAtTheHugOS 1:25,000 Explorer mapsI'm reading a blog posting from Multimap which says that Explorer maps are available in the <a href="http://www.multimap.com/business/api/">Multimap API</a> . Does that include the Open API? If so can someone tell me which magic numbers I need. I currently have<br/> <br/>     MMDataResolver.setDataPreferences( MM_WORLD_MAP, [904]);<br/> <br/>     mapviewer.setZoomFactor(15);<br/>     mapviewer.setAllowedZoomFactors (13,15);<br/> <br/> which gives me 1:50,000 with three levels of zoom.<br/> <br/> Thanks<br/>Wed, 09 Sep 2009 14:12:41 Z2009-10-28T17:08:10Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/a0c1aa1e-76e3-4a95-a0ff-ccad2efd4024http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/a0c1aa1e-76e3-4a95-a0ff-ccad2efd4024aidangranthttp://social.msdn.microsoft.com/Profile/en-US/?user=aidangrantMass update of PolylinesDoes anybody know of a way to set an option for all Polylines in a map in one go?<br/><br/>I hav many lines with many points on my map, and need to change whetehr they are clickable or not.  I am currenlty doing this by looping through them all, but this is getting very slow as I add more polylines:<br/><br/><em>for ( routeid in polylines){<br/>    polylines[routeid].reset( LatLonPoints[routeid], { clickable : false } );      <br/>}<br/><br/></em>(<em>polylines </em>is an array containing all the polylines, and <em>LatLonPoints</em> is an array containing the points array for each polyline)Wed, 28 Oct 2009 10:25:07 Z2009-11-11T12:32:58Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/e820fe3c-0ba8-4678-b286-9bd50cc0dd0ehttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/e820fe3c-0ba8-4678-b286-9bd50cc0dd0eaidangranthttp://social.msdn.microsoft.com/Profile/en-US/?user=aidangrantEvent Handler for Clicks on a PolylineHi,<br/><br/>I'm sure this should be really straightforward, but I can't get and event handler working to pick up clicks on a Polyline.  I've tried to base it on this example, which uses closed filled polygons - <a href="http://www.multimap.com/apidocs/1.2/demos/clickablepolygons.htm">http://www.multimap.com/apidocs/1.2/demos/clickablepolygons.htm</a>, but to no avail.  Also tried chopping around some of the code from here <a href="http://social.msdn.microsoft.com/Forums/en/multimapapi/thread/d4a5fa90-b5c5-45b4-b4b8-2e5745e58131">http://social.msdn.microsoft.com/Forums/en/multimapapi/thread/d4a5fa90-b5c5-45b4-b4b8-2e5745e58131</a> but again no luck.<br/><br/>Here's a basic snippet of my latest efforts:<br/><br/> <div style="background-color:white;color:black"> <pre> polyline = <span style="color:blue">new</span> MMPolyLineOverlay( points, <span style="color:#a31515">'#FF0000'</span>, 0.5, 1,  <span style="color:blue">true</span>, <span style="color:#a31515">'#FFFF00'</span>, <span style="color:blue">true</span> ); ... mapviewer.addEventHandler( <span style="color:#a31515">'click'</span>, eventHandler ); ... <span style="color:blue">function</span> eventHandler(eventType, target, arg3, arg4, arg5)  {<br/><span style="color:blue"> if</span>( target <span style="color:blue">instanceof</span> MMPolyLineOverlay ) {<br/> alert( <span style="color:#a31515">&quot;You clicked on the Line!&quot;</span> );<br/> }<span style="color:blue">else</span>{   <br/> alert( <span style="color:#a31515">&quot;Don't know where you clicked!&quot;</span> ); <br/> }<br/>} </pre> </div> I think the main problem is that I can't find out what values the &quot;target&quot; parameter takes, and how to handle it.<br/><br/>To try and work out what the I tried just making the event handler:<br/><br/> <pre>function eventHandler(eventType, target, arg3, arg4, arg5) { alert( target ); }</pre> this just returns [object Object].<br/><br/>Can anybody point me in the right direction?!<br/><br/>Thanks<br/><br/>AidanMon, 19 Oct 2009 15:22:26 Z2009-11-11T12:34:23Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/083d9ec0-30be-40dc-8b68-a15c1b3f2574http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/083d9ec0-30be-40dc-8b68-a15c1b3f2574aidangranthttp://social.msdn.microsoft.com/Profile/en-US/?user=aidangrant100% map width?Hi,<br/><br/>I'm trying to get a map of 100% of browser window size as follows, but it doesn't work:<br/><br/><em>&lt;div id=&quot;mapviewer&quot; style=&quot;width : 100%; height : 100%;&quot;&gt;</em><br/><br/>Is there a way to achieve this?<br/><br/>Thanks<br/><br/>AidanMon, 19 Oct 2009 10:14:35 Z2009-11-11T12:34:46Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/8b03c0ee-7ab7-4f44-b257-ac57ddf3666ahttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/8b03c0ee-7ab7-4f44-b257-ac57ddf3666aa89http://social.msdn.microsoft.com/Profile/en-US/?user=a89Map Types widget with explicit OS Map button.I really like the explicit OS Map button on the multimap.com website. I think it's easier to use than the standard MMMapTypeWidget in the Open API.<br /> <br /> Is it possible to use this widget using the Open API?<br /> <br /> best wishes,<br /> AlasdairThu, 15 Oct 2009 23:00:46 Z2009-10-16T14:21:08Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/78908300-ce82-46e4-88cc-345739756b29http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/78908300-ce82-46e4-88cc-345739756b29DanieleItalyhttp://social.msdn.microsoft.com/Profile/en-US/?user=DanieleItalyMultimap - static map - RouteHi,&nbsp;I have a problem with static maps&nbsp;when I draw a route.<br />The result of route it's wrong, for example:<br /><br /><a href="http://developer.multimap.com/API/map/1.2/[api_key]?routeKey=IT,10.35474:43.63986;10.39277:43.71589,0&amp;width=400&amp;height=400&amp;routeColor=255,0,0&amp;routeOpacity=1">http://developer.multimap.com/API/map/1.2/<span style="color: #000000;">[api_key]</span>?routeKey=IT,10.35474:43.63986;10.39277:43.71589,0&amp;width=400&amp;height=400&amp;routeColor=255,0,0&amp;routeOpacity=1</a><br /><br />return a polyline wrong.<br />In this example, I have the corret result:<br /><br /><a href="http://www.multimap.com/directions/?mode=walking&amp;qs_2=via%20san%20vito%2C%20pisa&amp;displayName_2=via%20san%20vito%2C%20pisa&amp;lat_1=43.66302&amp;lat_2=43.71542&amp;mapData=915&amp;qs_1=via%20livornese%2C%20pisa&amp;displayName_1=via%20livornese%2C%20pisa&amp;lon_1=10.34974&amp;lon_2=10.39302&amp;countryCode_2=IT&amp;countryCode_1=IT">http://www.multimap.com/directions/?mode=walking&amp;qs_2=via%20san%20vito%2C%20pisa&amp;displayName_2=via%20san%20vito%2C%20pisa&amp;lat_1=43.66302&amp;lat_2=43.71542&amp;mapData=915&amp;qs_1=via%20livornese%2C%20pisa&amp;displayName_1=via%20livornese%2C%20pisa&amp;lon_1=10.34974&amp;lon_2=10.39302&amp;countryCode_2=IT&amp;countryCode_1=IT</a><br /><br />How can I to have the same result with static maps?<br />Thx in advance,<br />&nbsp;&nbsp; DanieleWed, 14 Oct 2009 10:07:36 Z2009-10-14T14:28:19Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/b2c1e5e4-4dd1-42ed-9885-a64293476c57http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/b2c1e5e4-4dd1-42ed-9885-a64293476c57Brijvallabhhttp://social.msdn.microsoft.com/Profile/en-US/?user=BrijvallabhMMFactory is not definedHi,<br /> I am giving a postcode and country code and corresponding to that I am taking the information of that area.<br /> I am using MMFactory.createSerachRequester(..) for searching.<br /> When first time I am making the search, there is no JS error but when I refresh the page and search then there is a JS error saying that &quot;MMFactory is not defined.&quot;<br /> This error appears randomly. Not everytime it occurs.<br /> Can anybody help me.<br /> <br /> BrijTue, 13 Oct 2009 09:59:09 Z2009-10-13T13:36:55Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/0e65bb94-d82a-4b5a-a230-a3740c75614chttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/0e65bb94-d82a-4b5a-a230-a3740c75614cportuswebshttp://social.msdn.microsoft.com/Profile/en-US/?user=portuswebsMore results per search.Aparently all my searchs are limited to 10 results and I would like to change it.<br /> <br /> Is it possible to receipt more than 10 results per search? how?<br /> <br /> ThanksMon, 12 Oct 2009 15:00:26 Z2009-10-13T09:39:11Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/dc9f96af-e5ac-434b-bd51-14019ad05b06http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/dc9f96af-e5ac-434b-bd51-14019ad05b06insert_funny_username_herehttp://social.msdn.microsoft.com/Profile/en-US/?user=insert_funny_username_hereMultimap Web Services help<p>Following the <a href="http://www.multimap.com/apidocs/1.2/web_service/ws_searching.htm">Multimap API V1.2 Web Services Documentation - Searching </a>documentation but having some issues.</p> <p>I have to use classic asp. I am grabbing the xml file, and xsl to output it.</p> <p>EXAMPLE OF MY ASP CODE:</p> <pre> strURL=** my url with api key *** set oXMLhttp = Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;) oXMLhttp.open &quot;GET&quot;, strURL, False oXMLhttp.send set oXMLsource = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;) oXMLsource.async = false oXMLsource.loadxml(oXMLhttp.responseText) set oXSL = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;) oXSL.async = false oXSL.load(server.mappath(&quot;xsl/multimap.xsl&quot;)) ResultsFeed = oXMLsource.transformNode(oXSL) Response.Write(ResultsFeed)</pre> <p>EXAMPLE OF MY XSL CODE:</p> <pre lang=x-xml>&lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot; ?&gt; &lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt; &lt;xsl:output method=&quot;html&quot; omit-xml-declaration=&quot;yes&quot;/&gt; &lt;xsl:template match=&quot;/&quot;&gt; &lt;table summary=&quot;api test&quot; cellspacing=&quot;0&quot;&gt; &lt;thead&gt; &lt;th scope=&quot;col&quot;&gt;Distance&lt;/th&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;xsl:apply-templates select=&quot;//Record&quot;&gt;&lt;/xsl:apply-templates&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/xsl:template&gt; &lt;xsl:template match=&quot;Record&quot;&gt; &lt;tr&gt; &lt;td&gt; &lt;xsl:value-of disable-output-escaping=&quot;yes&quot; select=&quot;Distance/Miles&quot;/&gt;mi (&lt;xsl:value-of disable-output-escaping=&quot;yes&quot; select=&quot;Distance/KM&quot;/&gt;km) &lt;/td&gt; &lt;/tr&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt;</pre> I have been able to get this code to work if i remove <strong>xmlns=&quot;http://clients.multimap.com/API&quot;</strong> from the RecordSets node. Otherwise it returns nothing. I am sure it is a bad idea to remove this. <br/><br/>What am i doing wrong? I am sure I am doing something wrong.<br/>Mon, 28 Sep 2009 16:03:49 Z2009-10-09T14:29:24Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/3a649a37-bdfc-450b-8213-bdea86186ff7http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/3a649a37-bdfc-450b-8213-bdea86186ff7stav999http://social.msdn.microsoft.com/Profile/en-US/?user=stav999MMMarkerOverlay - Info Boxes and Clustering<p>When I hook up the event to fire on the openInfoBox and I'm using clustering then I cannot set the html of the info box by calling the setInfoBoxContent, it works fine if the overlay has not come from a cluster. (I code recreate this by using openinfoBox but this loses the clustering paging which is not good)<br/><br/>The code used is as follows:<br/><br/>//The attribute (applyhtml) of the marker is set when it is created to true then unset to stop it setting the html twice and to stop it from overwriting the cluster list<br/><br/>function openInfoBoxEvent(eventType, eventTarget, arg1, arg2, arg3)<br/>{<br/>    if(arg1.getAttribute(&quot;applyhtml&quot;) == &quot;true&quot;)<br/>    {<br/>        arg1.setAttribute(&quot;applyhtml&quot;,&quot;&quot;);<br/>        arg1.setInfoBoxContent(&quot;&lt;strong&gt;SOME HTML&lt;/strong&gt;&quot;,{});<br/>    }<br/>}<br/><br/>The code does not throw an error but due to the arg1 (parent marker) not being formatted in the same way (in the underlying HTML, ie multiple MMcontent divs with an <span class="nodeLabelBox repTarget"><span class="nodeAttr editGroup"><span class="nodeValue editable">MMclusterindex for clustered items</span></span></span>) the setinfoBoxContent does nothing.<br/><br/>I presume you should be able to set the html of the info box whether it has come from a cluster or not so could someone please advise on where I'm going wrong?<br/><br/>Stav</p>Mon, 28 Sep 2009 16:41:00 Z2009-10-08T09:28:54Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d236555f-b87e-4968-a83f-93de02538c54http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d236555f-b87e-4968-a83f-93de02538c54AndrewMhttp://social.msdn.microsoft.com/Profile/en-US/?user=AndrewMStart map in OS ModeHi, I would like to set a map to start in the Ordnance Survey mode when appropriate, but I can only see options to set the other map modes. Can it be done or is it to be added?<br/> AndrewFri, 21 Aug 2009 19:36:42 Z2009-10-06T14:56:53Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/45337f4e-07a4-4972-8236-ccd7295f37f7http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/45337f4e-07a4-4972-8236-ccd7295f37f7stav999http://social.msdn.microsoft.com/Profile/en-US/?user=stav999Disabling Zoom and DraggingHow do you disable the zooming and dragging features of the&nbsp;MultiMap API?<br /><br />In other words I want the map to dislplay a point but to be completely static allowing no user interaction.Fri, 02 Oct 2009 13:11:41 Z2009-10-06T09:48:55Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6a9def3b-8cba-4389-b0f7-d0620af5265dhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/6a9def3b-8cba-4389-b0f7-d0620af5265dportuswebshttp://social.msdn.microsoft.com/Profile/en-US/?user=portuswebsmultimaps.com in flash??how can I load a map and markers in flash?Thu, 01 Oct 2009 00:07:03 Z2009-10-02T09:32:04Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/f191a7a4-8298-4713-83dc-82b1548de7b4http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/f191a7a4-8298-4713-83dc-82b1548de7b4portuswebshttp://social.msdn.microsoft.com/Profile/en-US/?user=portuswebsAdd multiple markers multimaps<pre>mapviewer = MMFactory.createViewer( document.getElementById( 'mapviewer' ) ); mapviewer.goToPosition( new MMLocation (new MMSearch(new MMSearchFilter('cicode','eq', 'E1157' )), 10)); mapviewer.goToPosition( new MMLocation (new MMSearch(new MMSearchFilter('cicode','eq', 'C5532' )), 10));</pre> That's my code but I would like to know how to add a marker without go to the position.<br/> <br/> ThanksWed, 30 Sep 2009 11:18:23 Z2009-09-30T15:12:54Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/21bbb185-5ce3-4b1c-83e1-e323eeae78ffhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/21bbb185-5ce3-4b1c-83e1-e323eeae78fflardiehttp://social.msdn.microsoft.com/Profile/en-US/?user=lardieMultiple markers, find nearest to any locationHi<br/><br/>I've been looking to do this on google maps but can't figure out how so thought it might be sensible to try multimap.  <br/><br/>I need to have lots of markers of venues across the country and then do a search from a postcode to see which is closest.  There are a couple of examples of this where others have done the same sort of thing: <a href="http://www.multimap.com/clients/places.cgi?client=ufitest">http://www.multimap.com/clients/places.cgi?client=ufitest</a> and <a href="http://www.ukonlinecentres.com/consumer/index.php">http://www.ukonlinecentres.com/consumer/index.php</a>.  I'm not really fussy about the method, just need something that works.<br/><br/>Can anyone point me in the right direction?  Any help much appreciated :)Thu, 24 Sep 2009 09:48:32 Z2009-09-30T09:53:23Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d633a87b-0aed-4c4c-b7f6-81c7331793c3http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d633a87b-0aed-4c4c-b7f6-81c7331793c3stav999http://social.msdn.microsoft.com/Profile/en-US/?user=stav999Multimap ClusteringThe default clustering options for decluttering markers seems to work very well for any zoom level above 7 but not below (bing maps seems to work well on all zoom levels)<br/><br/>The scenario is that we have 400 markers being plotted on a map of the UK and we obviously need to cluster these up at certain zoom levels. The default clustering options seem to work very well for any zoom level above 7 but not below.<br/><br/>There is a caviate to this though when I'm on zoom level 8 (around 50 clusters) and clustering is working well and I zoom out to zoom level 7 then the clustering appears to cluster correctly (more like bing) for a split second (around 20 clusters) and then seems to cluster again and the results of the clustering end up with 4 clustered markers one containing 268 markers another containing 4, another containing 34 and another containing 31.<br/><br/>Have you come across this issue before and how was it handled?Wed, 23 Sep 2009 15:17:48 Z2009-09-30T09:53:47Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/c8361ba6-2acb-4dea-b5f3-ea66e9f7d144http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/c8361ba6-2acb-4dea-b5f3-ea66e9f7d144ahobhttp://social.msdn.microsoft.com/Profile/en-US/?user=ahobStatic Map API daily Usage limitDoes anybody know how many static maps a website can request per day and is the limit calculated at website ip address level or the users IP address?Sat, 05 Sep 2009 20:30:09 Z2009-09-10T18:59:26Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d4a5fa90-b5c5-45b4-b4b8-2e5745e58131http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/d4a5fa90-b5c5-45b4-b4b8-2e5745e58131O.B.http://social.msdn.microsoft.com/Profile/en-US/?user=O.B.About overlayStartDrag and overlayEndDrag eventsHi, <br/> <br/> Does anyone has an example of how addEventHandler is used.<br/> I'm interested more by the overlayStartDrag and overlayEndDrag events.<br/> <br/> Thanks,Mon, 31 Aug 2009 15:09:27 Z2009-09-10T11:56:14Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/a7372315-6cc5-4cb5-921e-911b7ddff417http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/a7372315-6cc5-4cb5-921e-911b7ddff417Pauloushttp://social.msdn.microsoft.com/Profile/en-US/?user=PaulousPolyllines not displayed on Nokia S60 browserHi,<br/><br/>I've noticed on my Nokia 5800 that polylines are not displayed although everything else seems to work ok. Any ideas about this? I _think_ the browser is supposed to support SVG.<br/><br/>The maps themselves look better than I imagined they would on such a small display, partlcularly the os maps.<br/><br/>Note there were no polylines using Google maps either and I didn't even get a map with OS openspace.<br/><br/>Thanks,<br/>Paul<br/>Wed, 26 Aug 2009 21:24:57 Z2009-08-31T07:32:44Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/235d7ca8-9e8c-4f2d-9911-efc95945410ahttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/235d7ca8-9e8c-4f2d-9911-efc95945410aAnton Voynovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Anton%20VoynovDisable multimap to search for streets?Hi,<br/><br/>Is there a way to disable the multimap to search for streets? For example I need to search only for city or postal code, but when I search for &quot;Leeds&quot; I get results for streets not for the city.<br/><br/>Thanks.<br/>Anton Wed, 19 Aug 2009 07:10:42 Z2009-09-01T14:43:35Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/118e4834-4357-40b1-a084-767f967df28ehttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/118e4834-4357-40b1-a084-767f967df28eDaveeMhttp://social.msdn.microsoft.com/Profile/en-US/?user=DaveeMTrouble signing upHi, i've tried several times to get an API key for multimap but I never receive an email.  Have they stopped giving out developer keys?Mon, 24 Aug 2009 14:07:41 Z2009-08-27T09:35:49Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/c8722525-9093-4e54-8a5a-dd5bb794cf7dhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/c8722525-9093-4e54-8a5a-dd5bb794cf7dmorenafhttp://social.msdn.microsoft.com/Profile/en-US/?user=morenafAccess to file http://s0.cdn.multimap.com/APIJS/1.2.186/obfuscated-mmviewer.en-us.jsHi <div><br/></div> <div>Ho do I access and modify file http://s0.cdn.multimap.com/APIJS/1.2.186/obfuscated-mmviewer.en-us.js ?</div> <div><br/></div> <div>Thanks for your help </div> <div>Morena</div>Tue, 25 Aug 2009 16:02:31 Z2009-10-06T11:38:23Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/f398deb8-9c9a-4b35-a4ee-86cdedf38ff5http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/f398deb8-9c9a-4b35-a4ee-86cdedf38ff5blibberhttp://social.msdn.microsoft.com/Profile/en-US/?user=blibberPrinting Polylines NOT WorkingHello<br/> I am resurrecting this topic from the 'old' Mulitimap Open API Forum.<br/> <br/> Polylines do not print in Internet Explorer 8 (or any other browser for that matter).<br/> <br/> This problem has been around from about the time a change was made to fix IE 8  not <em>displaying</em> maps (which works OK now).  But it may not be related to that change.<br/> <br/> Please help, this must be a serious problem to many other applications apart from mine.<br/> <br/> Blibber<br/> <br/>Mon, 03 Aug 2009 13:01:53 Z2009-09-01T14:43:02Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/343d0ba9-bc68-4cae-9285-5f8271a61d1dhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/343d0ba9-bc68-4cae-9285-5f8271a61d1dandreaspaghttp://social.msdn.microsoft.com/Profile/en-US/?user=andreaspagMarker displayed in a different possition after zoom-outHello, here's the problem...<br/> <br/> I add a marker on the map after the map is loaded but when the user zooms out the marker gets missplaced. Let's say i have a marker on New York City. If you zoom out the marker does not remain in place and if you continue zooming out the marker seems to pointing to another city/state.<br/> <br/> Any help appreciated.<br/> <br/> Regards.Sat, 08 Aug 2009 15:35:24 Z2009-08-10T09:06:09Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/e253c900-9de2-479d-8f1e-328a31d606d4http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/e253c900-9de2-479d-8f1e-328a31d606d4andreaspaghttp://social.msdn.microsoft.com/Profile/en-US/?user=andreaspagTrigger function on zoomHello, is there a way to trigger a function call after the user clicks on the zoom widget ? (zooming in/out).<br/> <br/> Regards,Fri, 07 Aug 2009 14:35:59 Z2009-08-25T10:58:57Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/16a0c9a8-da8d-4882-a12b-b97d80b795e1http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/16a0c9a8-da8d-4882-a12b-b97d80b795e1jen_Dhttp://social.msdn.microsoft.com/Profile/en-US/?user=jen_DError: Can't read (fread) geocode fileHi,<br/> <br/> I was on the old forum talking about a woodland map - shame the posts aren't been copied over to the new forum, I shall have to copy it to my comuter and start a new thread here! Never mind, for now I have a new and more pressing issue:<br/> <br/> <pre>$xml_file = &quot;http://developer.multimap.com/API/geocode/1.2/[my_key]?qs=&quot; . str_replace(' ', '',$location ); echo $xml_file; $fp = fopen($xml_file, &quot;r&quot;) or die(&quot;Could not open file&quot;); $data = fread($fp, 80000) or die(&quot;Could not read file&quot;); </pre> This has been working fine until this week some time. Now it fails on the fread() of the xml file. I've echoed out the $xml_file location and that is working fine, and I can view the xml in my web browser, but my PHP script can open the file but can't read it.<br/> <br/> Has something changed recently that I'm not aware of, it was working fine up until recently.<br/> <br/> Thanks for you help, and I look forward to hearing an answer, so I can fix my map :-)<br/> <br/> Jen <br/>Thu, 06 Aug 2009 11:51:23 Z2009-08-14T08:48:51Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/1b7e429a-084b-4ec5-95cb-f370d41afb33http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/1b7e429a-084b-4ec5-95cb-f370d41afb33mappamonkeyhttp://social.msdn.microsoft.com/Profile/en-US/?user=mappamonkeyMultimap dynamic script loadHi,<br/> <br/> Does anyone of experience of dynamically loading the Multimap javascript file?<br/> <br/> for exmplae using jQuery thus:<br/> $.getScript(&quot;http://developer.multimap.com/API/maps/1.2/api_key&quot;)<br/> ?<br/> <br/> When I try to do this, the page goes blank and all previous content is lost.<br/> <br/> Many Thanks in advance<br/> <br/> Dave Lowe<br/>Tue, 04 Aug 2009 12:08:48 Z2009-08-06T11:44:48Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/cf869b70-a13e-49be-bf52-accb491318cahttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/cf869b70-a13e-49be-bf52-accb491318carichard_t_http://social.msdn.microsoft.com/Profile/en-US/?user=richard_t_Building info box with eventsHello, <br/><br/>I have some markers on the map and I'm trying to build their content using the &quot;openInfoBox&quot; event. I'd only like to build the content once, so I thought I'd just create the marker, set a custom attribute (index into a global array). In the event handler I then check to see if the marker has content (hasInfoBoxContent), if not I'll build the content.<br/><br/>The trouble is my event handler is not called if I don't set some content on the marker - then of course hasInfoBoxContent returns true.<br/><br/>I suppose I could hold a flag in the array, but am I missing something on the markers?<br/><br/>Thanks.Tue, 04 Aug 2009 08:14:08 Z2009-08-14T08:49:58Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/dd943a15-42fc-499e-9491-d214235a5686http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/dd943a15-42fc-499e-9491-d214235a5686MelissaMShttp://social.msdn.microsoft.com/Profile/en-US/?user=MelissaMSDifferent travel distances to the public site with the API web serviceWhy are the travel distances different to the public site with the API web service?Thu, 30 Jul 2009 14:35:56 Z2009-07-30T14:36:29Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/17db3990-228a-4244-93eb-3cd395e20c40http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/17db3990-228a-4244-93eb-3cd395e20c40MelissaMShttp://social.msdn.microsoft.com/Profile/en-US/?user=MelissaMSWhat protocols does the API support?What protocols does the API support?Thu, 30 Jul 2009 14:22:10 Z2009-07-30T14:22:58Zhttp://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/7834b319-9be7-4c80-a571-7ae83a33d240http://social.msdn.microsoft.com/Forums/en-US/multimapapi/thread/7834b319-9be7-4c80-a571-7ae83a33d240MelissaMShttp://social.msdn.microsoft.com/Profile/en-US/?user=MelissaMSHow can I request all records in the dataset?How can I request all records in the dataset?Thu, 30 Jul 2009 14:19:01 Z2009-07-30T14:19:48Z