Added reference to dll but not working

Last post 8/26/2009 5:08:44 PM by Chris Pietschmann. 6 replies. << Back to Web.Maps.VE v2.0 General
8/25/2009 5:17:41 PM
metadegrees

Added reference to dll but not working

I am using VS 2008 and I have added the reference to Simplovation.Web.Maps.VE but I cannot create anything on the aspx page.

I even tried the <%@ Register Assembly bit but no joy... it isn't registered.

8/25/2009 5:53:55 PM
metadegrees

Re:Added reference to dll but not working

I have actually got it working but I cannot seem to get it to work properly with uk coordinates.

I am using Oxford University in the UK as a reference and if I just want to display Oxford Uni with nothing else then it works fine.

However, if I add a pushpin with these coordinates it ends up showing me the US instead... the same happened with Virtual Earth SDK also.

This is the code that works:

map1.Height = 500;

map1.Width = 900;

map1.Longitude = -1.260878;

map1.Latitude = 51.757172;

map1.Zoom = 17;

8/25/2009 7:24:38 PM
Chris Pietschmann

Re:Added reference to dll but not working

8/25/2009 7:26:42 PM
Chris Pietschmann

Re:Added reference to dll but not working

8/25/2009 7:27:39 PM
Chris Pietschmann

Re:Added reference to dll but not working

Are you adding the Pushpin AND setting the Map Center Location? If you aren't setting the center location, and only adding the Pushpin, then it will not make that Pushpin visible when the Map first loads. It will show the "default" location; which is the USA.

If you are still having issues, please post some more sample code that demonstrates this so I have more reference to go off of to troubleshoot. Thanks.

Sorry about the "blank" replies, there seems to be something up with the editor on the site. BTW, I'm working on fixing that too.
8/25/2009 10:37:40 PM
metadegrees

Re:Added reference to dll but not working

Got it working.

I needed to add:

map1.LatLong.Latitude = 51;

map1.LatLong.Longitude = -1;

:)

Thanks for your help

8/26/2009 5:08:44 PM
Chris Pietschmann

Re:Added reference to dll but not working

Great! I'm glad you got it working. Please post on the forums if you have any further questions. Thanks.