Custom size static map not working?

Oct 7, 2009 at 10:22 AM

Hello,

can somebody explain why WIDTH and HEIGHT are not recognised anymore when IsStatic is set to true?
The static map stays at 512x512 and that's not what i want. If i set IsStatic to false the map is properly resized based on the width and height values.

So this works:

<artem:GoogleMap ID="GoogleMap1" key="MyKey" runat="server" Width="215px" Height="215px" Latitude="42.1229"  Longitude="24.7879" Zoom="4" EnableScrollWheelZoom="true"></artem:GoogleMap>

And this isn't:

<artem:GoogleMap ID="GoogleMap1" key="MyKey" runat="server" Width="215px" Height="215px" Latitude="42.1229"  Longitude="24.7879" Zoom="4" EnableScrollWheelZoom="true" IsStatic = "True"></artem:GoogleMap>

Thanks in advance.

 

Coordinator
Oct 7, 2009 at 2:06 PM
Hi,

Try using WIDTH and HEIGHT without "px" when map is static. In your example should look like:

<artem:GoogleMap ID="GoogleMap1" key="MyKey" runat="server" Width="215" Height="215" Latitude="42.1229"  Longitude="24.7879" Zoom="4" EnableScrollWheelZoom="true" IsStatic = "True">
</artem:GoogleMap>

Regrads

Oct 7, 2009 at 3:05 PM

Hello,

thanks for your reply.

Removing "px" from width and height didn't work..

My asp.net vb source is now like:

<artem:GoogleMap ID="GoogleMap1" key="MyKey" runat="server" Width="211" Height="215" isstatic="true" Latitude="42.1229"  Longitude="24.7879" Zoom="4" EnableScrollWheelZoom="true"></artem:GoogleMap>

But the map still renders at 512x512. In the html-source a DIV is created by googlemap:

<div id="GoogleMap1" style="height:215px;width:211px;">

This is the CDATA:

//<![CDATA[
var GoogleMap1 = new Artem.Web.GoogleMap({"Address":null,"BaseCountryCode":null,"ClientID":"GoogleMap1","ClientMapID":"GoogleMap1","DefaultAddress":null,"DefaultMapView":0,"Directions":[],"EnableContinuousZoom":false,"EnableDoubleClickZoom":false,"EnableDragging":true,"EnableGoogleBar":false,"EnableInfoWindow":true,"EnableMarkerManager":false,"EnableReverseGeocoding":false,"EnableScrollWheelZoom":true,"Height":"215px","IsStreetView":false,"IsStatic":true,"Key":"<removed>","Latitude":42.1229,"Longitude":24.7879,"MapEvents":{},"MarkerEvents":{},"PolygonEvents":{},"PolylineEvents":{},"ShowMapTypeControl":true,"ShowScaleControl":false,"ShowTraffic":false,"StreetViewMode":0,"StreetViewPanoID":null,"Width":"211px","Zoom":4,"ZoomPanType":0});
GoogleMap1.load();
//]]>