Jump to content

help creating a building map


markbett

Recommended Posts

I am looking to impliment a digital maping system similar to google maps where I can take floorplans of my company and map assets to certain locations and search for them after.  like google-maps meets an office people-finder so that when you are looking for printer 23-541-a you can just put it in the interface and it will bring up the map of where the asset is in the company....

 

I ahve been looking for a tutorial on creating something like this or an existing product but have had no luck... can someone point me in the right direction

Link to comment
https://forums.phpfreaks.com/topic/42692-help-creating-a-building-map/
Share on other sites

I would:

 

1) Make maps with grid references.

 

2) make an sql database with however many coordinates something like:

 

id, resource, resource_description, mapid, x-coord, y-coord

 

Then you can reference each item so for your example you would search for printer 23-541 and the result would be map=3 coordinate=(32,53)

 

If you want to make it really easy use the image of the map as a background image and a bit of css to put a star or something at the coordinate with position:absolute; left:x-coord*factor; top:y-coord*factor;

 

something like that should do.

 

Martin

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.