C#/ASP.NET and mapping, can someone point me to the right direction

VinylxScratches

Golden Member
Feb 2, 2009
1,666
0
0
Ok, here is what I want to attempt and I need help with the proper term.

Lets say I have a floor plan of a building in PDF... PNG whatever format.

I want to design a web app that will have a layer on top of this floor plan that I can put coordinates on it that are located on a backend database.

I know how to program a little so I want to try this out.... but I can't seem to google what this would be?
 

Train

Lifer
Jun 22, 2000
13,579
75
91
www.bing.com
Depending on the detail of what you want to overlay, you could do all of this in JavaScript

Bing "Walter Zorn JS Graphics" for a nice library I used to draw polygons on top of an image in 100% js

If you actually want to render onto the PNG itself, then return it to the browser using C#, you will want to look into GDI+, aka the System.Drawing namespace.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Depending on the detail of what you want to overlay, you could do all of this in JavaScript

Bing "Walter Zorn JS Graphics" for a nice library I used to draw polygons on top of an image in 100% js

If you actually want to render onto the PNG itself, then return it to the browser using C#, you will want to look into GDI+, aka the System.Drawing namespace.

I think that's the first use of 'Bing' as a verb that I've ever seen. Are you consciously trying to topple the current zeitgeist?

OP, one of the big questions you need to answer is required browser compatibility. If you can limit yourself to browsers that support HTML 5 then this is quite a bit easier to do. Without it you'll need to position colored elements or images, as opposed to actually drawing on the screen, but in any case you can do everything you need here, I think, with jquery and a simple rest service to return the coords/links for symbols to appear on a specific floor plan.
 

Train

Lifer
Jun 22, 2000
13,579
75
91
www.bing.com
I think that's the first use of 'Bing' as a verb that I've ever seen. Are you consciously trying to topple the current zeitgeist?
I almost typed google but then realized I have Bing as my default and felt as though I would be lying. I don't really want to topple Google, but I'd prefer if both Bing and Yahoo all had bigger shares.
OP, one of the big questions you need to answer is required browser compatibility. If you can limit yourself to browsers that support HTML 5 then this is quite a bit easier to do. Without it you'll need to position colored elements or images, as opposed to actually drawing on the screen, but in any case you can do everything you need here, I think, with jquery and a simple rest service to return the coords/links for symbols to appear on a specific floor plan.

The lib I mentioned is actually quite similar to how the Canvas tag works. Unless he needs a really high frame rate and/or hundreds of objects, it pretty much does everything the Canvas tag would, and works back to IE6 without needing any special per-browser coding.