Showing points on my image map - image

This is my scenario in brief:
I am making a restaurant's website.
The restaurant owner will upload his restaurant's plan view image.(example: http://cache.smartdraw.com/examples/content/Examples/SmartDraw/Floor_Plans/Restaurant_Plans/Family_Restaurant_Plan_L.jpg) Then he will mark on the image were the tables available for booking are. These coordinates will be saved in my database.
The user on the other hand will be able to click on these points(tables) and book a table.
The image map coordinates will be created dynamically according to the points that were submitted by the restaurant owner. Therefore I cannot have an image with icons already on it.
Is there a way with which I can display some sort of icon on the image map where the coordinates are? In order to make the points visible for the user.

I can think of a few options:
Generate the image map on your server, using something like GD for PHP, and place the icons where you want them
Use Javascript/CSS to position the icons where you want the in the HTML page
Use Flash to dynamically generate the icons

I think you can use ItemizedOverlay in this case.

Related

Is it possible to show map marker without input the Lat/Long with Leaflet

as the title stated, I'm trying to develop a GIS (geographic information system) webpage, whereby the user (admin) can input location and picture, and the marker will be shown/popup in the main page's map. I'm using Laravel framework and Leaflet for the map to implement the GIS. I manage to show the map without any marker yet. As the admin want to add the location to show the marker in the main page's map, normally what i've seen is that you need to include the Lat/Long for that specific location. It is true that including Lat/Long can make the marker more accurate to pin point the exact location, and I think it is necessary thing to include, as it is the main source of information to the system for pin point the location. But as a user, sometimes they not as diligent as we thought, the problem will occur if they left the lat/long to 0, because they are too lazy to search for the lat/long, thus making the initial goal which is to show marker in the main map fail.
Is there a way to make the Lat/Long automatically filled as the user type their location information? Or is there any other technologies for the GIS that I could implement/use?
Thank you.
If I'm not mistaken, then you are asking about this like
https://developers.google.com/maps/documentation/geocoding/overview

Anylogic: how to export a model without Anylogic cloud?

I am using the PLE of Anylogic. I would like to know if it is possible to export a model of Anylogic as PNG or JPEG. I don't want to use Anylogic cloud but I simply need an image of the template.
One available option is the "Create documentation" which you can find under the "Tools" button in the top toolbar. This will create a PDF with images of your model as well as tables summarizing all your code and parameters' values.
But if you only need an image, why not just take a screenshot? You can also select all your model's element, copy and paste in Paint for example.
Is that what you need? Or did I misunderstand the question?
In case your model is too big, you can do several things (from easiest to hardest):
make several screenshots, and then get them together
use the zoom to get a wider view and get the whole picture in one
use viewAreas of different size to view whatever you need to do
change your UX so as to see different information in different views (and then screenshot whatever you find more useful from those views)

Oracle ADF : Making Image as Multi-Clickable

We are developing a web application using Oracle ADF. Our application has a page with the following image
We need to implement Image Mapping functionality which is available in normal HTML. Means the above image should be multi-clickable. For example when user clicks Business Value Health part, I need to show some description and if user clicks Operations Health part, I need to show some other description.
How do I make this image multi-clickable in ADF?
You won't have such feature directly from ADF, but you can decompose the big image into 13 smaller images where each image can have it's own link.
Of course, you then will need to assemble big image from css and that requires a bit of CSS knowledge.

Image reduce website content

My site have 2 pages and the 2 pages contain a similar picture. If a user comes to the first page, he downloads the picture and then come to the second page, if I make the website so that the picture is shared between the 2 pages then the user no need to download the picture again?
If I want to put the same picture but different in size on the webpage, is it better to make 2 pictures by using image software editor or using CSS to change the width and the height of the picture?
you have answered your question.
if the image is from the same source, and if you have configured the caching on webserver correctly (and if the client has enabled cache), then there are no re-requests sent to view the same resource.
you dont need to create multiple images for different sizes, use html image attributes to show it in the grid dimensions you wish to.
Exception: if the original image is quite large, and you are not sure if the user will want to view the image, then create smaller image for faster loading. Thumbnails on a photo album is a good example for that. There is a program called re-sizer which accepts a folder and create a new set of images with the required dimensions
Resources below
Image Resizer
HTTP Compression

Mosaicking PDF documents?

I have (or, rather, will soon have) a number of maps created in ArcGIS 10.0 and exported as PDF documents. The maps all show contiguous areas, being rather like the pages in a map book. There will also be a smaller-scale map depicting the entire area (let's call it the "study area"), but with less detail, rather like that page of a map atlas that shows what page depicts what area.
I wonder if there is any way to create thumbnails of the larger-scale maps and mosaic them such as to create an index map of the study area. A user would then be able to see, for a particular point on the smaller-scale map, which of the larger-scale maps depicts that part of the study area. (And perhaps see that map by clicking on the larger map?) Does anyone have any ideas I can implement this? I would prefer exporting the maps in PDF format, but, if I can't do all of the above with PDF, then any other format to which a map can be exported from ArcGIS, such as JPG or TIF, will work.
You should be able to create a PDF which does this.
What you need to do is render each page to a small image.
Then collect each of these images and add them as a mosaic to an index page.
Then put links from each small image back to the original PDF page.
If the hierarchy was more than one level deep you could repeat the process.
You need a PDF component to do this. What you want in terms of features is something which does decent PDF rendering. It's an easy thing to do badly and a difficult thing to do well.
ABCpdf .NET does good quality rendering so it's what I would suggest, but then I would because I work on it. :-)

Resources